Skip to content

Commit

Permalink
Bug fixes in Installs pane
Browse files Browse the repository at this point in the history
~ fix Reveal in Explorer
~ fix Uninstall
  • Loading branch information
Ravbug committed Dec 22, 2024
1 parent fb8873d commit 925eb68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.56</string>
<string>1.57</string>
<key>CFBundleSignature</key>
<string>UNHn</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion source/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
static constexpr std::string_view projectsFile = "projects.txt";
static constexpr std::string_view editorPathsFile = "editorPaths.txt";
static constexpr std::string_view templatePrefix = "com.unity.template";
static constexpr std::string_view AppVersion = "v1.56";
static constexpr std::string_view AppVersion = "v1.57";

struct wxListCtrl;
struct wxWindow;
Expand Down
2 changes: 1 addition & 1 deletion source/interface_derived.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ void MainFrameDerived::OnUninstall(wxCommandEvent &){
reveal_in_explorer(editor.path);
#elif defined _WIN32
// execute the uninstaller
auto uninstaller_path = std::filesystem::path(editor.path) / editor.name / "Editor\\Uninstall.exe";
auto uninstaller_path = std::filesystem::path(editor.path) / "Editor\\Uninstall.exe";
ShellExecute(0, 0, uninstaller_path.c_str(), NULL, 0, SW_SHOW);
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion source/interface_derived.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class MainFrameDerived : public MainFrame{
int id = installsList->GetSelection();
if (id != wxNOT_FOUND){
editor& e = editors[id];
std::filesystem::path path = e.path / e.name;
std::filesystem::path path = e.path;
if (!std::filesystem::exists(path)){
reveal_in_explorer(e.path);
}
Expand Down

0 comments on commit 925eb68

Please sign in to comment.