From 4ee027d3a846f5bc1ba0fbcdbbc45e2cc42e32f0 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 21 Jun 2026 17:54:49 +0200 Subject: [PATCH] UI: Show "Could not decrypt title" for drag and drop too (#1962) --- src/gui/wxgui/MainWindow.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/gui/wxgui/MainWindow.cpp b/src/gui/wxgui/MainWindow.cpp index c1cfc242..542554f2 100644 --- a/src/gui/wxgui/MainWindow.cpp +++ b/src/gui/wxgui/MainWindow.cpp @@ -548,8 +548,7 @@ bool MainWindow::FileLoad(const fs::path launchPath, wxLaunchGameEvent::INITIATE wxMessageBox(t, _("Error"), wxOK | wxCENTRE | wxICON_ERROR); return false; } - else if (initiatedBy == wxLaunchGameEvent::INITIATED_BY::MENU || - initiatedBy == wxLaunchGameEvent::INITIATED_BY::COMMAND_LINE) + else { wxString t = _("Unable to launch game\nPath:\n"); t.append(_pathToUtf8(launchPath)); @@ -566,13 +565,6 @@ bool MainWindow::FileLoad(const fs::path launchPath, wxLaunchGameEvent::INITIATE wxMessageBox(t, _("Error"), wxOK | wxCENTRE | wxICON_ERROR); return false; } - else - { - wxString t = _("Unable to launch game\nPath:\n"); - t.append(_pathToUtf8(launchPath)); - wxMessageBox(t, _("Error"), wxOK | wxCENTRE | wxICON_ERROR); - return false; - } } if(launchTitle.IsValid())