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
commit 8b26debda1
Notes: sideshowbarker 2024-07-18 11:31:03 +09:00
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 };
};
}