Remove redundant quit() method call

This commit is contained in:
Pcornat 2026-01-26 17:45:01 +01:00
commit f687b2f325
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD

View file

@ -44,12 +44,11 @@ namespace gui_to_app {
void AppWin2Back::on_activate() { void AppWin2Back::on_activate() {
Application::on_activate(); Application::on_activate();
app_builder = [this] -> Glib::RefPtr<Gtk::Builder> { app_builder = [] -> Glib::RefPtr<Gtk::Builder> {
try { try {
return Gtk::Builder::create_from_file("window_ui.ui"); return Gtk::Builder::create_from_file("window_ui.ui");
} catch (const std::exception &e) { } catch (const std::exception &e) {
spdlog::critical("Error occurred while loading Window's UI: {}", e.what()); spdlog::critical("Error occurred while loading Window's UI: {}", e.what());
quit();
return nullptr; return nullptr;
} }
}(); }();