Add log message when QApplication is being quit

This commit is contained in:
Megamouse 2025-05-07 21:20:09 +02:00
parent fdc1a51cba
commit 30a4b26306
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,8 @@
#include <clocale>
LOG_CHANNEL(sys_log, "SYS");
[[noreturn]] void report_fatal_error(std::string_view text, bool is_html = false, bool include_help_text = true);
// For now, a trivial constructor/destructor. May add command line usage later.
@ -56,6 +58,7 @@ void headless_application::InitializeCallbacks()
on_exit();
}
sys_log.notice("Quitting headless application");
quit();
return true;
}

View file

@ -593,6 +593,8 @@ void gui_application::InitializeCallbacks()
// Close main window in order to save its window state
m_main_window->close();
}
gui_log.notice("Quitting gui application");
quit();
return true;
}