Skip to content

Fixed unnecessary tab creation on apply to target#303

Merged
osa1 merged 3 commits into
osa1:masterfrom
trevarj:names-fix
Apr 14, 2021
Merged

Fixed unnecessary tab creation on apply to target#303
osa1 merged 3 commits into
osa1:masterfrom
trevarj:names-fix

Conversation

@trevarj

@trevarj trevarj commented Jan 18, 2021

Copy link
Copy Markdown
Contributor

A bug appeared when I made the initial fix, where a new User tab is not highlighted due to the call order of add_privmsg and set_tab_style.

Closes #302

Comment thread tiny/src/conn.rs
MsgTarget::User { serv, nick }
};
ui.set_tab_style(TabStyle::Highlight, &msg_target);
ui.add_privmsg(nick, &msg, ts, &msg_target, false, is_action);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the new tab, then sets the style

@osa1
osa1 merged commit d37b90a into osa1:master Apr 14, 2021
@osa1

osa1 commented Apr 14, 2021

Copy link
Copy Markdown
Owner

Thanks @trevarj , and sorry for the delay!

@trevarj
trevarj deleted the names-fix branch April 14, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sending NAMES on a server tab creates new tab for each nick in server

2 participants