Skip to content

Commit

Permalink
Hotfix: poptracker selecting portable mode when it shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Apr 1, 2023
1 parent 209fd41 commit 6ad081b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/poptracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/poptracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ad081b

Please sign in to comment.