Fix #2284 (don’t send always send an inactive chatstate with /w)
This commit is contained in:
parent
48614d6cf0
commit
3eece64062
1 changed files with 2 additions and 1 deletions
|
@ -1540,7 +1540,7 @@ class Core(object):
|
||||||
if self.current_tab_nb == nb:
|
if self.current_tab_nb == nb:
|
||||||
return
|
return
|
||||||
self.previous_tab_nb = self.current_tab_nb
|
self.previous_tab_nb = self.current_tab_nb
|
||||||
self.current_tab().on_lose_focus()
|
old_tab = self.current_tab()
|
||||||
if isinstance(nb, int):
|
if isinstance(nb, int):
|
||||||
if 0 <= nb < len(self.tabs):
|
if 0 <= nb < len(self.tabs):
|
||||||
if not self.tabs[nb]:
|
if not self.tabs[nb]:
|
||||||
|
@ -1551,6 +1551,7 @@ class Core(object):
|
||||||
for name in tab.matching_names():
|
for name in tab.matching_names():
|
||||||
if nb in name:
|
if nb in name:
|
||||||
self.current_tab_nb = tab.nb
|
self.current_tab_nb = tab.nb
|
||||||
|
old_tab.on_lose_focus()
|
||||||
self.current_tab().on_gain_focus()
|
self.current_tab().on_gain_focus()
|
||||||
self.refresh_window()
|
self.refresh_window()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue