Save thumbnails next to infinipaint savefile
This commit is contained in:
parent
962665ffd4
commit
c9c61a8b68
10 changed files with 281 additions and 215 deletions
|
|
@ -203,11 +203,11 @@ void FileSelectScreen::create_file_button() {
|
|||
}) {
|
||||
svg_icon_button(gui, "add button", "data/icons/plus.svg", {
|
||||
.onClick = [&] {
|
||||
main.create_new_tab({
|
||||
CustomEvents::emit_event<CustomEvents::OpenInfiniPaintFileEvent>({
|
||||
.isClient = false,
|
||||
.saveThumbnail = true,
|
||||
.filePathEmptyAutoSaveDir = savePath
|
||||
});
|
||||
main.set_screen([&] (std::unique_ptr<Screen>) { return std::make_unique<PhoneDrawingProgramScreen>(main); });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -577,6 +577,7 @@ void FileSelectScreen::file_view() {
|
|||
else {
|
||||
CustomEvents::emit_event<CustomEvents::OpenInfiniPaintFileEvent>({
|
||||
.isClient = false,
|
||||
.saveThumbnail = true,
|
||||
.filePathSource = filePath
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue