Skip to content

Commit e1fdfdc

Browse files
committed
3 confirmations is a lot
- remove one confirmation
1 parent 63986f5 commit e1fdfdc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/interface_derived.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,8 @@ void MainFrameDerived::OnUninstall(wxCommandEvent &){
522522
reveal_in_explorer(editor.path);
523523
#elif defined _WIN32
524524
// execute the uninstaller
525-
if (wxMessageBox(fmt::format("Uninstall Unity {} from \"{}\"?", editor.name, editor.path), "Confirm Uninstallation", wxYES | wxNO | wxICON_INFORMATION) == wxYES) {
526-
auto uninstaller_path = std::filesystem::path(editor.path) / editor.name / "Editor\\Uninstall.exe";
527-
ShellExecute(0, 0, uninstaller_path.c_str(), NULL, 0, SW_SHOW);
528-
}
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);
529527
#endif
530528
}
531529

0 commit comments

Comments
 (0)