Fix saving project icon
This commit is contained in:
@@ -55,16 +55,14 @@ function ui_menubar_render_ui() {
|
||||
|
||||
if (ui_menubar_icon_button(0, 2)) box_preferences_show();
|
||||
if (ui_menubar_icon_button(0, 3)) {
|
||||
///if (arm_android || arm_ios)
|
||||
// Save project icon in lit mode
|
||||
if (context_raw.viewport_mode == viewport_mode_t.PATH_TRACE) {
|
||||
context_raw.viewport_mode = viewport_mode_t.LIT;
|
||||
}
|
||||
context_set_viewport_mode(viewport_mode_t.LIT);
|
||||
console_toast(tr("Saving project"));
|
||||
project_save();
|
||||
///end
|
||||
sys_notify_on_next_frame(function () {
|
||||
box_projects_show();
|
||||
sys_notify_on_end_frame(function () {
|
||||
project_save();
|
||||
box_projects_show();
|
||||
});
|
||||
});
|
||||
}
|
||||
if (ui_menubar_icon_button(4, 2)) {
|
||||
|
||||
Reference in New Issue
Block a user