Skip to content

Commit

Permalink
connect exit button
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Sep 6, 2024
1 parent d36e072 commit feb27bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bedsidemon/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ application::application(bool window, std::string_view res_path) :
auto& app = bedsidemon::application::inst();
app.open_menu(utki::make_shared<settings_menu>(app.gui.context));
};

c.get().get_widget_as<ruis::push_button>("exit_button"sv).click_handler = [](ruis::push_button& b) {
auto& app = bedsidemon::application::inst();
app.quit();
};
}
}

Expand Down

0 comments on commit feb27bd

Please sign in to comment.