mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
DisplaySettings: Set window modified state
This commit is contained in:
committed by
Andreas Kling
parent
af01c6be0c
commit
d7190be3a3
Notes:
sideshowbarker
2024-07-17 12:00:31 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/d7190be3a3 Pull-request: https://github.com/SerenityOS/serenity/pull/14006 Reviewed-by: https://github.com/MacDue
@@ -26,14 +26,20 @@ void DesktopSettingsWidget::create_frame()
|
||||
load_from_gml(desktop_settings_gml);
|
||||
|
||||
m_workspace_rows_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_rows_spinbox");
|
||||
m_workspace_rows_spinbox->on_change = [&](auto) {
|
||||
set_modified(true);
|
||||
};
|
||||
m_workspace_columns_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_columns_spinbox");
|
||||
m_workspace_columns_spinbox->on_change = [&](auto) {
|
||||
set_modified(true);
|
||||
};
|
||||
}
|
||||
|
||||
void DesktopSettingsWidget::load_current_settings()
|
||||
{
|
||||
auto& desktop = GUI::Desktop::the();
|
||||
m_workspace_rows_spinbox->set_value(desktop.workspace_rows());
|
||||
m_workspace_columns_spinbox->set_value(desktop.workspace_columns());
|
||||
m_workspace_rows_spinbox->set_value(desktop.workspace_rows(), GUI::AllowCallback::No);
|
||||
m_workspace_columns_spinbox->set_value(desktop.workspace_columns(), GUI::AllowCallback::No);
|
||||
}
|
||||
|
||||
void DesktopSettingsWidget::apply_settings()
|
||||
|
||||
Reference in New Issue
Block a user