mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-06 08:15:35 +00:00
fix(settings): tab position rows are dropdowns again
#982 moved New tab position and Tab bar position into General with the segmented control they had before #979 made every pick-one setting a dropdown, so General mixed the two again. Both use settings_choice.
This commit is contained in:
@@ -1372,7 +1372,7 @@ impl Tty7App {
|
||||
TabBarPosition::Left => 1,
|
||||
};
|
||||
let sidebar_auto_grouping = cfg.sidebar_auto_grouping;
|
||||
let new_tab = self.segmented(
|
||||
let new_tab = self.settings_choice(
|
||||
"wt-new-tab-pos",
|
||||
&[t(L10nKey::SettingsAfterCurrent), t(L10nKey::SettingsAtEnd)],
|
||||
new_tab_idx,
|
||||
@@ -1388,7 +1388,7 @@ impl Tty7App {
|
||||
);
|
||||
},
|
||||
);
|
||||
let tab_bar = self.segmented(
|
||||
let tab_bar = self.settings_choice(
|
||||
"wt-tab-bar-pos",
|
||||
&[t(L10nKey::SettingsTop), t(L10nKey::SettingsLeft)],
|
||||
tab_bar_idx,
|
||||
|
||||
Reference in New Issue
Block a user