add iOS and macOS icons
This commit is contained in:
12
src/app.cpp
12
src/app.cpp
@@ -53,9 +53,11 @@ void App::open_document(std::string path)
|
||||
std::smatch m;
|
||||
if (!std::regex_search(path, m, r))
|
||||
return;
|
||||
std::string base = m[1].str();
|
||||
std::string name = m[2].str();
|
||||
std::string ext = m[3].str();
|
||||
|
||||
if (str_iequals(m[3].str(), "abr"))
|
||||
if (str_iequals(ext, "abr"))
|
||||
{
|
||||
auto mb = message_box("Import ABR", "Would you like to import the brushes?", true);
|
||||
mb->on_submit = [this, path] (Node* target) {
|
||||
@@ -63,7 +65,7 @@ void App::open_document(std::string path)
|
||||
target->destroy();
|
||||
};
|
||||
}
|
||||
else if (str_iequals(m[3].str(), "ppbr"))
|
||||
else if (str_iequals(ext, "ppbr"))
|
||||
{
|
||||
auto mb = message_box("Import PPBR", "Would you like to import the brushes?", true);
|
||||
mb->on_submit = [this, path] (Node* target) {
|
||||
@@ -73,9 +75,9 @@ void App::open_document(std::string path)
|
||||
}
|
||||
else
|
||||
{
|
||||
auto open_action = [this, path, m] {
|
||||
doc_name = m[2].str();
|
||||
doc_dir = m[1].str();
|
||||
auto open_action = [this, path, base, name] {
|
||||
doc_name = name;
|
||||
doc_dir = base;
|
||||
doc_path = path;
|
||||
canvas->reset_camera();
|
||||
layers->clear();
|
||||
|
||||
Reference in New Issue
Block a user