Update gui when save keybind is pressed in web version
This commit is contained in:
parent
359e249ad3
commit
8d78dc2f3c
1 changed files with 1 additions and 0 deletions
|
|
@ -369,6 +369,7 @@ void Toolbar::save_as_func() {
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
optionsMenuOpen = true;
|
optionsMenuOpen = true;
|
||||||
optionsMenuType = SET_DOWNLOAD_NAME;
|
optionsMenuType = SET_DOWNLOAD_NAME;
|
||||||
|
main.g.gui.set_to_layout();
|
||||||
#else
|
#else
|
||||||
open_file_selector("Save", {{"InfiniPaint Canvas", World::FILE_EXTENSION}}, [w = make_weak_ptr(main.world)](const std::filesystem::path& p, const auto& e) {
|
open_file_selector("Save", {{"InfiniPaint Canvas", World::FILE_EXTENSION}}, [w = make_weak_ptr(main.world)](const std::filesystem::path& p, const auto& e) {
|
||||||
auto world = w.lock();
|
auto world = w.lock();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue