summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/RealTimeSync/main_dlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/main_dlg.h')
-rw-r--r--FreeFileSync/Source/RealTimeSync/main_dlg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/main_dlg.h b/FreeFileSync/Source/RealTimeSync/main_dlg.h
index 8ce409a6..f83c5440 100644
--- a/FreeFileSync/Source/RealTimeSync/main_dlg.h
+++ b/FreeFileSync/Source/RealTimeSync/main_dlg.h
@@ -28,12 +28,12 @@ class MainDialog: public MainDlgGenerated
public:
static void create(const Zstring& cfgFile);
- void onQueryEndSession(); //last chance to do something useful before killing the application!
-
private:
MainDialog(const Zstring& cfgFileName);
~MainDialog();
+ void onBeforeSystemShutdown(); //last chance to do something useful before killing the application!
+
void loadConfig(const Zstring& filepath);
void onClose (wxCloseEvent& event ) override { Destroy(); }
@@ -67,6 +67,8 @@ private:
Zstring folderLastSelected_;
zen::AsyncGuiQueue guiQueue_; //schedule and run long-running tasks asynchronously, but process results on GUI queue
+
+ const zen::SharedRef<std::function<void()>> onBeforeSystemShutdownCookie_ = zen::makeSharedRef<std::function<void()>>([this] { onBeforeSystemShutdown(); });
};
}
bgstack15