1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:37:44 +00:00

Calendar: Ask about unsaved changes when closing the window :^)

The Calendar now asks about unsaved changes in the calendar when
attempting to close the window.
This commit is contained in:
david072 2023-11-17 21:04:40 +01:00 committed by Andrew Kaster
parent 75faa9239a
commit b657fa6f95
3 changed files with 34 additions and 1 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2023, the SerenityOS developers.
* Copyright (c) 2023, David Ganz <david.g.ganz@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -24,6 +25,8 @@ public:
void update_window_title();
void load_file(FileSystemAccessClient::File file);
bool request_close();
private:
void create_on_tile_doubleclick();
@ -43,6 +46,7 @@ private:
ErrorOr<NonnullRefPtr<GUI::Action>> create_open_settings_action();
OwnPtr<GUI::ActionGroup> m_view_type_action_group;
RefPtr<GUI::Action> m_save_action;
RefPtr<EventCalendar> m_event_calendar;
};