1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

DisplaySettings: Show screen numbers when showing the Monitors tab

This will be helpful once we allow the user to rearrange the displays.
This commit is contained in:
Tom 2021-06-20 13:24:40 -06:00 committed by Andreas Kling
parent 41859ad3fe
commit 8b26debda1
3 changed files with 20 additions and 0 deletions

View file

@ -19,7 +19,14 @@ class MonitorSettingsWidget : public GUI::Widget {
C_OBJECT(MonitorSettingsWidget);
public:
~MonitorSettingsWidget() override
{
if (m_showing_screen_numbers)
show_screen_numbers(false);
}
void apply_settings();
void show_screen_numbers(bool);
private:
MonitorSettingsWidget();
@ -35,6 +42,8 @@ private:
RefPtr<GUI::ComboBox> m_resolution_combo;
RefPtr<GUI::RadioButton> m_display_scale_radio_1x;
RefPtr<GUI::RadioButton> m_display_scale_radio_2x;
bool m_showing_screen_numbers { false };
};
}