added winapi-call to flush clipboard (#778)
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
#include "singletons/Updates.hpp"
|
||||
#include "widgets/dialogs/LastRunCrashDialog.hpp"
|
||||
|
||||
#ifdef USEWINSDK
|
||||
# include "util/WindowsHelper.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef C_USE_BREAKPAD
|
||||
# include <QBreakpadHandler.h>
|
||||
#endif
|
||||
@@ -133,6 +137,11 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
|
||||
|
||||
chatterino::NetworkManager::deinit();
|
||||
|
||||
#ifdef USEWINSDK
|
||||
// flushing windows clipboard to keep copied messages
|
||||
flushClipboard();
|
||||
#endif
|
||||
|
||||
_exit(0);
|
||||
}
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user