diff options
author | B Stack <bgstack15@gmail.com> | 2020-07-22 11:37:03 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-07-22 11:37:03 -0400 |
commit | c95b3937fef3e2c63768f1b3b1dc2c898f23d91d (patch) | |
tree | 10260e25ae905564f7978b83fc4e316670f987c6 /wx+/app_main.h | |
parent | Merge branch '10.25' into 'master' (diff) | |
download | FreeFileSync-c95b3937fef3e2c63768f1b3b1dc2c898f23d91d.tar.gz FreeFileSync-c95b3937fef3e2c63768f1b3b1dc2c898f23d91d.tar.bz2 FreeFileSync-c95b3937fef3e2c63768f1b3b1dc2c898f23d91d.zip |
add upstream 11.0
Diffstat (limited to 'wx+/app_main.h')
-rw-r--r-- | wx+/app_main.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wx+/app_main.h b/wx+/app_main.h index 8d2a6eeb..570a2a9c 100644 --- a/wx+/app_main.h +++ b/wx+/app_main.h @@ -14,8 +14,8 @@ namespace zen { //just some wrapper around a global variable representing the (logical) main application window -void setMainWindow(wxWindow* window); //set main window and enable "exit on frame delete" -bool mainWindowWasSet(); +void setGlobalWindow(wxWindow* window); //set main window and enable "exit on frame delete" +bool globalWindowWasSet(); @@ -26,7 +26,7 @@ bool mainWindowWasSet(); namespace impl { inline -bool& refMainWndStatus() +bool& refGlobalWindowStatus() { static bool status = false; //external linkage! return status; @@ -35,15 +35,15 @@ bool& refMainWndStatus() inline -void setMainWindow(wxWindow* window) +void setGlobalWindow(wxWindow* window) { wxTheApp->SetTopWindow(window); wxTheApp->SetExitOnFrameDelete(true); - impl::refMainWndStatus() = true; + impl::refGlobalWindowStatus() = true; } -inline bool mainWindowWasSet() { return impl::refMainWndStatus(); } +inline bool globalWindowWasSet() { return impl::refGlobalWindowStatus(); } } #endif //APP_MAIN_H_08215601837818347575856 |