save brushes settings

This commit is contained in:
2019-02-03 14:36:48 +01:00
parent d8728344c4
commit c2d526dec9
7 changed files with 207 additions and 68 deletions

View File

@@ -124,7 +124,7 @@ void App::dialog_newdoc()
App::I.hideKeyboard();
};
if (Asset::exist(path, false))
if (Asset::exist(path))
{
// ask confirm is file already exist
auto msgbox = new NodeMessageBox();
@@ -331,7 +331,7 @@ void App::dialog_save_ver()
static char tmp_name[256];
sprintf(tmp_name, "%s.%02d", base.c_str(), i);
next = tmp_name;
if (Asset::exist(doc_dir + "/" + next + ".ppi", false))
if (Asset::exist(doc_dir + "/" + next + ".ppi"))
continue;
break;
}
@@ -382,7 +382,7 @@ void App::dialog_save()
App::I.hideKeyboard();
};
if (Asset::exist(path, false))
if (Asset::exist(path))
{
// ask confirm is file already exist
auto msgbox = new NodeMessageBox();