mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
PixelPaint: Make sure modified state is updated when undo_stack changes
This commit is contained in:
parent
b33aa1bc9b
commit
1943aef2cb
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/meiskam
Commit: 1943aef2cb
Pull-request: https://github.com/SerenityOS/serenity/pull/15919
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ MainWidget::MainWidget()
|
||||||
m_tool_properties_widget->set_enabled(false);
|
m_tool_properties_widget->set_enabled(false);
|
||||||
set_actions_enabled(false);
|
set_actions_enabled(false);
|
||||||
}
|
}
|
||||||
|
update_window_modified();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -117,6 +118,7 @@ void MainWidget::image_editor_did_update_undo_stack()
|
||||||
m_redo_action->set_enabled(false);
|
m_redo_action->set_enabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
image_editor->update_modified();
|
||||||
|
|
||||||
auto make_action_text = [](auto prefix, auto suffix) {
|
auto make_action_text = [](auto prefix, auto suffix) {
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue