mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:27:35 +00:00
DisplaySettings: Move screen number show/hide logic into widget
This is functionally the same as before, as selecting a tab fires Show and HideEvents. But this way, we don't need to directly access the TabWidget, which will make using SettingsWindow simpler.
This commit is contained in:
parent
9fc53017c6
commit
a4af8b2a64
3 changed files with 14 additions and 3 deletions
|
@ -28,6 +28,10 @@ public:
|
|||
void apply_settings();
|
||||
void show_screen_numbers(bool);
|
||||
|
||||
protected:
|
||||
void show_event(GUI::ShowEvent& event) override;
|
||||
void hide_event(GUI::HideEvent& event) override;
|
||||
|
||||
private:
|
||||
MonitorSettingsWidget();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue