prepare UI for release, disable unused features, rename file format to .ppi
This commit is contained in:
@@ -36,7 +36,7 @@ void App::dialog_newdoc()
|
||||
dialog->btn_ok->on_click = [this, dialog](Node*)
|
||||
{
|
||||
std::string name = dialog->input->m_string;
|
||||
std::string path = data_path + "/" + name + ".pano";
|
||||
std::string path = data_path + "/" + name + ".ppi";
|
||||
|
||||
auto action = [this, dialog, name] {
|
||||
std::array<int, 4> resolutions{ 512, 1024, 1536, 2048 };
|
||||
@@ -255,14 +255,14 @@ 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(data_path + "/" + next + ".pano", false))
|
||||
if (Asset::exist(data_path + "/" + next + ".ppi", false))
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
doc_name = next;
|
||||
title_update();
|
||||
canvas->m_canvas->project_save(data_path + "/" + next + ".pano");
|
||||
canvas->m_canvas->project_save(data_path + "/" + next + ".ppi");
|
||||
}
|
||||
|
||||
void App::dialog_save()
|
||||
@@ -281,7 +281,7 @@ void App::dialog_save()
|
||||
dialog->btn_ok->on_click = [this, dialog](Node*)
|
||||
{
|
||||
std::string name = dialog->input->m_string;
|
||||
std::string path = data_path + "/" + name + ".pano";
|
||||
std::string path = data_path + "/" + name + ".ppi";
|
||||
|
||||
if (name.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user