Adding a Builder as a field (app_builder)

This commit is contained in:
Pcornat 2024-12-18 22:55:31 +01:00
parent 031445743c
commit abf68d7ad3
Signed by: Pcornat
GPG Key ID: E0326CC678A00BDD

View File

@ -36,7 +36,7 @@ namespace gui_to_app {
void AppWin2Back::on_activate() {
Application::on_activate();
const auto app_builder = [this]() -> Glib::RefPtr<Gtk::Builder> {
app_builder = [this]() -> Glib::RefPtr<Gtk::Builder> {
try {
return Gtk::Builder::create_from_file("window_ui.ui");
} catch (const std::exception &e) {