1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:45:06 +00:00

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

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) {