From 2076b90d929dd8aa83084178926001b715852d9b Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Mon, 8 Mar 2021 17:36:54 +0100 Subject: [PATCH] gsdump: filter fswatcher events & rename the app --- pcsx2/gui/Dialogs/GSDumpDialog.cpp | 7 +++++-- pcsx2/gui/Dialogs/ModalPopups.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pcsx2/gui/Dialogs/GSDumpDialog.cpp b/pcsx2/gui/Dialogs/GSDumpDialog.cpp index 015d030b7c..d804ae8397 100644 --- a/pcsx2/gui/Dialogs/GSDumpDialog.cpp +++ b/pcsx2/gui/Dialogs/GSDumpDialog.cpp @@ -55,7 +55,7 @@ using namespace pxSizerFlags; // -------------------------------------------------------------------------------------- Dialogs::GSDumpDialog::GSDumpDialog(wxWindow* parent) - : wxDialogWithHelpers(parent, _("GSDumpGov"), pxDialogFlags()) + : wxDialogWithHelpers(parent, _("GS Debugger"), pxDialogFlags()) , m_dump_list(new wxListView(this, ID_DUMP_LIST, wxDefaultPosition, wxSize(400, 300), wxLC_NO_HEADER | wxLC_REPORT | wxLC_SINGLE_SEL)) , m_preview_image(new wxStaticBitmap(this, wxID_ANY, wxBitmap(EmbeddedImage().Get()), wxDefaultPosition, wxSize(400,250))) , m_debug_mode(new wxCheckBox(this, ID_DEBUG_MODE, _("Debug Mode"))) @@ -823,5 +823,8 @@ void Dialogs::GSDumpDialog::GSThread::ExecuteTaskInThread() void Dialogs::GSDumpDialog::PathChanged(wxFileSystemWatcherEvent& event) { - GetDumpsList(); + int type = event.GetChangeType(); + + if (type == wxFSW_EVENT_CREATE || type == wxFSW_EVENT_DELETE || type == wxFSW_EVENT_RENAME) + GetDumpsList(); } diff --git a/pcsx2/gui/Dialogs/ModalPopups.h b/pcsx2/gui/Dialogs/ModalPopups.h index 1c93f1d5f4..5995c2fda5 100644 --- a/pcsx2/gui/Dialogs/ModalPopups.h +++ b/pcsx2/gui/Dialogs/ModalPopups.h @@ -142,7 +142,7 @@ namespace Dialogs static wxString GetNameStatic() { - return L"GSDumpGov"; + return L"GS Debugger"; } wxString GetDialogName() const {