diff options
author | saturneric <[email protected]> | 2023-02-04 06:02:49 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-02-04 06:02:49 +0000 |
commit | 8c2e8e37505058bb2448ba65021f616ca658927b (patch) | |
tree | 919b0124932a5ee7dce940595c46f087f2d763cc /src/before_exit.cpp | |
parent | fix: solve some issues (diff) | |
download | GpgFrontend-8c2e8e37505058bb2448ba65021f616ca658927b.tar.gz GpgFrontend-8c2e8e37505058bb2448ba65021f616ca658927b.zip |
fix: solve open file issue in menu bar
1. add flush policy for logger
2. seperate the name of each logger
3. replace the old open file logic with the new one when click the button on the menu bar
Diffstat (limited to 'src/before_exit.cpp')
-rw-r--r-- | src/before_exit.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/before_exit.cpp b/src/before_exit.cpp index 3b0989fa..caf61db1 100644 --- a/src/before_exit.cpp +++ b/src/before_exit.cpp @@ -32,7 +32,11 @@ * @brief Actions performed before exiting the application * */ -void before_exit() { +void before_exit() { SPDLOG_INFO("called"); + + // Under VisualStudio, this must be called before main finishes to workaround + // a known VS issue + spdlog::drop_all(); spdlog::shutdown(); } |