mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
Make multi-tab live radios focus the first tab too
This commit is contained in:
parent
3a97f605c0
commit
4aa14eea78
1 changed files with 4 additions and 1 deletions
|
|
@ -267,6 +267,7 @@ class ChirpMain(gtk.Window):
|
|||
else:
|
||||
devices = [radio]
|
||||
|
||||
first_tab = True
|
||||
for device in devices:
|
||||
eset = editorset.EditorSet(device, self, tempname)
|
||||
eset.connect("want-close", self.do_close)
|
||||
|
|
@ -274,7 +275,9 @@ class ChirpMain(gtk.Window):
|
|||
eset.show()
|
||||
|
||||
tab = self.tabs.append_page(eset, eset.get_tab_label())
|
||||
self.tabs.set_current_page(tab)
|
||||
if first_tab:
|
||||
self.tabs.set_current_page(tab)
|
||||
first_tab = False
|
||||
|
||||
if isinstance(radio, chirp_common.LiveRadio):
|
||||
reporting.report_model_usage(radio, "live", True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue