Skip to content

Commit 19a905a

Browse files
committed
2 parents dcbeb1c + e1fdfdc commit 19a905a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

source/interface_derived.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,17 @@ void MainFrameDerived::OnOpenHub(wxCommandEvent &event){
513513

514514
void MainFrameDerived::OnUninstall(wxCommandEvent &){
515515
auto selected = installsList->GetSelection();
516-
if (selected != -1){
517-
auto editor = editors[selected];
518-
516+
if (selected != -1) {
517+
auto editor = editors[selected];
518+
519519
#ifdef __APPLE__
520-
// delete the folder
521-
int answer = wxMessageBox("Opening editor location in Finder. To uninstall an editor, simply delete its version folder.", "Notice", wxOK | wxICON_INFORMATION);
522-
reveal_in_explorer(editor.path);
520+
// delete the folder
521+
wxMessageBox("Opening editor location in Finder. To uninstall an editor, simply delete its version folder.", "Notice", wxOK | wxICON_INFORMATION);
522+
reveal_in_explorer(editor.path);
523523
#elif defined _WIN32
524-
// execute the uninstaller
524+
// execute the uninstaller
525+
auto uninstaller_path = std::filesystem::path(editor.path) / editor.name / "Editor\\Uninstall.exe";
526+
ShellExecute(0, 0, uninstaller_path.c_str(), NULL, 0, SW_SHOW);
525527
#endif
526528
}
527529

0 commit comments

Comments
 (0)