Skip to content

Commit

Permalink
HackStudio: Close locator on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
metmo authored and linusg committed Jun 2, 2021
1 parent 3ad7a1e commit 8d3539a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/DevTools/HackStudio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int main(int argc, char** argv)
s_window->set_menubar(menubar);

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)
return GUI::Window::CloseRequestDecision::Close;
return GUI::Window::CloseRequestDecision::StayOpen;
Expand Down

0 comments on commit 8d3539a

Please sign in to comment.