|
|
|
|
@ -45,6 +45,8 @@ void Application::on_activate() {
|
|
|
|
|
add_window(Window::get()); |
|
|
|
|
Window::get().show(); |
|
|
|
|
|
|
|
|
|
std::string last_current_file; |
|
|
|
|
|
|
|
|
|
if(directories.empty() && files.empty()) { |
|
|
|
|
try { |
|
|
|
|
boost::property_tree::ptree pt; |
|
|
|
|
@ -57,8 +59,9 @@ void Application::on_activate() {
|
|
|
|
|
if(!file.empty()) |
|
|
|
|
files.emplace_back(file); |
|
|
|
|
} |
|
|
|
|
last_current_file=pt.get<std::string>("current_file"); |
|
|
|
|
} |
|
|
|
|
catch(const std::exception &e) {} |
|
|
|
|
catch(const std::exception &) {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool first_directory=true; |
|
|
|
|
@ -90,6 +93,9 @@ void Application::on_activate() {
|
|
|
|
|
|
|
|
|
|
for(auto &error: errors) |
|
|
|
|
Terminal::get().print(error, true); |
|
|
|
|
|
|
|
|
|
if(!last_current_file.empty()) |
|
|
|
|
Notebook::get().open(last_current_file); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Application::on_startup() { |
|
|
|
|
|