PixelPaint: Mark editor as unmodified when opening an image
Previously a newly opened (and unedited) project was considered modified, even though there was no need to actually re-save the contents.
This commit is contained in:
parent
8c4579bced
commit
fc5c327751
Notes:
sideshowbarker
2024-07-17 21:37:33 +09:00
Author: https://github.com/mustafaquraish Commit: https://github.com/SerenityOS/serenity/commit/fc5c3277518 Pull-request: https://github.com/SerenityOS/serenity/pull/11632
1 changed files with 1 additions and 0 deletions
|
@ -712,6 +712,7 @@ void MainWidget::open_image_fd(int fd, String const& path)
|
|||
auto& image = *m_loader.release_image();
|
||||
auto& editor = create_new_editor(image);
|
||||
editor.set_path(path);
|
||||
editor.undo_stack().set_current_unmodified();
|
||||
m_layer_list_widget->set_image(&image);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue