Skip to content

Commit a3f12cc

Browse files
committed
Add tooltip for overridden global settings
1 parent 11131e6 commit a3f12cc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

frontend/desktop/src/ui/config_editor/setting.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,16 @@ impl<T: RawSetting> Setting for Overridable<T> {
795795
let game_override_enabled = (self.game_override_enabled)(config);
796796
if tab_is_global {
797797
let _id = ui.push_id("global");
798-
self.global
799-
.draw(ui, config, "", ui.content_region_avail()[0]);
798+
self.global.draw(
799+
ui,
800+
config,
801+
if game_override_enabled {
802+
"NOTE: Overridden for the current game"
803+
} else {
804+
""
805+
},
806+
ui.content_region_avail()[0],
807+
);
800808
} else {
801809
let button_width = ui.calc_text_size("\u{f055}")[0]
802810
.max(ui.calc_text_size("\u{f056}")[0])

0 commit comments

Comments
 (0)