small fixes

This commit is contained in:
2018-09-20 18:24:57 +02:00
parent 5a3ba0eea3
commit 3a81d337d4
6 changed files with 29 additions and 10 deletions

View File

@@ -1613,13 +1613,14 @@ void ui::Canvas::project_save_thread(std::string file_path)
// App::I.upload(data_path);
// LOG("uploaded");
m_unsaved = false;
m_newdoc = false;
App::I.async_start();
pb->destroy();
App::I.title_update();
App::I.async_update();
App::I.async_end();
m_unsaved = false;
m_newdoc = false;
}
void ui::Canvas::project_open(std::string file_path, std::function<void()> on_complete)
@@ -1756,6 +1757,8 @@ void ui::Canvas::project_open_thread(std::string file_path)
fclose(fp);
LOG("project restore from %s", file_path.c_str());
m_unsaved = false;
m_newdoc = false;
if (App::I.layout.m_loaded)
{
App::I.async_start();
@@ -1766,8 +1769,6 @@ void ui::Canvas::project_open_thread(std::string file_path)
App::I.title_update();
App::I.async_end();
}
m_unsaved = false;
m_newdoc = false;
}
ui::Image ui::Canvas::thumbnail_generate(int w, int h)