mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
HackStudio: Close locator on exit
This commit is contained in:
parent
3ad7a1e944
commit
8d3539a1c4
Notes:
sideshowbarker
2024-07-18 16:59:31 +09:00
Author: https://github.com/metmo
Commit: 8d3539a1c4
Pull-request: https://github.com/SerenityOS/serenity/pull/7706
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ int main(int argc, char** argv)
|
||||||
s_window->set_menubar(menubar);
|
s_window->set_menubar(menubar);
|
||||||
|
|
||||||
s_window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision {
|
s_window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision {
|
||||||
|
s_hack_studio_widget->locator().close();
|
||||||
if (s_hack_studio_widget->warn_unsaved_changes("There are unsaved changes, do you want to save before exiting?") == HackStudioWidget::ContinueDecision::Yes)
|
if (s_hack_studio_widget->warn_unsaved_changes("There are unsaved changes, do you want to save before exiting?") == HackStudioWidget::ContinueDecision::Yes)
|
||||||
return GUI::Window::CloseRequestDecision::Close;
|
return GUI::Window::CloseRequestDecision::Close;
|
||||||
return GUI::Window::CloseRequestDecision::StayOpen;
|
return GUI::Window::CloseRequestDecision::StayOpen;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue