mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 07:37:03 +00:00
Move clipboard flush to OnExit
Fixes occasional hang on exit
This commit is contained in:
parent
0ddcba4ff1
commit
6cee127852
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue