mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-04 11:57:45 -06:00
Move clipboard flush to OnExit
Fixes occasional hang on exit
This commit is contained in:
parent
0ddcba4ff1
commit
6cee127852
@ -24,6 +24,7 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include "wxHelper.h"
|
||||
|
||||
#include "Cafe/TitleList/TitleList.h"
|
||||
@ -389,6 +390,7 @@ bool CemuApp::OnInit()
|
||||
int CemuApp::OnExit()
|
||||
{
|
||||
wxApp::OnExit();
|
||||
wxTheClipboard->Flush();
|
||||
#if BOOST_OS_WINDOWS
|
||||
ExitProcess(0);
|
||||
#else
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
#include "wxgui/MainWindow.h"
|
||||
|
||||
#include <wx/mstream.h>
|
||||
#include <wx/clipbrd.h>
|
||||
|
||||
#include "wxgui/GameUpdateWindow.h"
|
||||
#include "wxgui/PadViewFrame.h"
|
||||
@ -442,7 +441,6 @@ wxString MainWindow::GetInitialWindowTitle()
|
||||
|
||||
void MainWindow::OnClose(wxCloseEvent& event)
|
||||
{
|
||||
wxTheClipboard->Flush();
|
||||
|
||||
if(m_game_list)
|
||||
m_game_list->OnClose(event);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user