FileManager: Exit the application cleanly when failing to open initial directory

Co-Authored-By: Andreas Kling <kling@serenityos.org>
This commit is contained in:
angel 2020-04-22 11:53:19 +02:00 committed by Andreas Kling
parent cc424b7b0f
commit 0d47ad7efe
Notes: sideshowbarker 2024-07-19 17:34:55 +09:00

View file

@ -593,7 +593,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
GUI::MessageBox::show(error_message, "File Manager", GUI::MessageBox::Type::Error);
if (quit)
exit(1);
app.quit(1);
};
directory_view.on_status_message = [&](const StringView& message) {