Skip to content

Commit

Permalink
CHANGELOG: Fixed taskbar not getting disabled on tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
siavash79 committed Oct 28, 2024
1 parent 35db244 commit 36658c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/edit2MakeNewCanary
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Editing this file will trigger the build script for a new canary.
Editing this file will trigger the build script for a new canary..
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void updatePrefs(String... Key) {
SystemUtils.killSelf();
}

taskbarMode = Integer.parseInt(Xprefs.getString("taskBarMode", "0"));
taskbarMode = Integer.parseInt(Xprefs.getString("taskBarMode", String.valueOf(TASKBAR_DEFAULT)));

TaskbarAsRecents = Xprefs.getBoolean("TaskbarAsRecents", false);
TaskbarHideAllAppsIcon = true;//Xprefs.getBoolean("TaskbarHideAllAppsIcon", false);
Expand Down Expand Up @@ -129,9 +129,7 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpParam) throws Th
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
if(taskbarMode == TASKBAR_DEFAULT) return;

boolean taskbarEnabled = taskbarMode == TASKBAR_ON;

if(taskbarEnabled) param.setResult(true);
param.setResult(taskbarMode == TASKBAR_ON);
}
});

Expand Down

0 comments on commit 36658c5

Please sign in to comment.