From 6ad081b7910aa27b143fc035739b27816530f11d Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Sat, 1 Apr 2023 15:03:58 +0200 Subject: [PATCH] Hotfix: poptracker selecting portable mode when it shouldn't --- CHANGELOG.md | 5 +++++ src/poptracker.cpp | 2 ++ src/poptracker.h | 2 +- src/version.h | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd09c65d..81573f90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # PopTracker Changelog +## v0.24.1 + +* Fixes + * Fix PopTracker sometimes selecting potable mode when it shouldn't + ## v0.24.0 * App Features diff --git a/src/poptracker.cpp b/src/poptracker.cpp index e3d77093..9f647dcb 100644 --- a/src/poptracker.cpp +++ b/src/poptracker.cpp @@ -41,6 +41,8 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args) std::string appPath = getAppPath(); if (!appPath.empty() && fileExists(os_pathcat(appPath, "portable.txt"))) { _isPortable = true; + } else { + _isPortable = false; // make sure } std::string config; diff --git a/src/poptracker.h b/src/poptracker.h index 54b67316..9de8ddcc 100644 --- a/src/poptracker.h +++ b/src/poptracker.h @@ -29,7 +29,7 @@ class PopTracker final : public App { nlohmann::json _config; nlohmann::json _oldConfig; nlohmann::json _colors; - bool _isPortable; + bool _isPortable = false; lua_State* _L = nullptr; LuaPackIO *_luaio = nullptr; diff --git a/src/version.h b/src/version.h index a8b6663f..4335e1a7 100644 --- a/src/version.h +++ b/src/version.h @@ -3,7 +3,7 @@ #define APP_VERSION_MAJOR 0 #define APP_VERSION_MINOR 24 -#define APP_VERSION_REVISION 0 +#define APP_VERSION_REVISION 1 #ifndef XSTR #define XSTR(s) STR(s)