diff options
Diffstat (limited to 'Userland/Applications/DisplaySettings/main.cpp')
-rw-r--r-- | Userland/Applications/DisplaySettings/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp index 554f7173d9..4a3a6a8cdb 100644 --- a/Userland/Applications/DisplaySettings/main.cpp +++ b/Userland/Applications/DisplaySettings/main.cpp @@ -52,6 +52,9 @@ int main(int argc, char** argv) auto& background_settings_widget = tab_widget.add_tab<DisplaySettings::BackgroundSettingsWidget>("Background"); auto& font_settings_widget = tab_widget.add_tab<DisplaySettings::FontSettingsWidget>("Fonts"); auto& monitor_settings_widget = tab_widget.add_tab<DisplaySettings::MonitorSettingsWidget>("Monitor"); + tab_widget.on_change = [&](auto& widget) { + monitor_settings_widget.show_screen_numbers(&widget == &monitor_settings_widget); + }; auto& button_container = main_widget.add<GUI::Widget>(); button_container.set_shrink_to_fit(true); |