Skip to content

Commit

Permalink
bump 2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Mar 12, 2024
1 parent 23512c3 commit c81201d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PowerControl",
"version": "2.4.3",
"version": "2.4.4",
"description": "PowerControl plugin.",
"scripts": {
"build": "shx rm -rf dist && rollup -c",
Expand Down
6 changes: 5 additions & 1 deletion src/util/pluginMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ export class PluginManager{
Settings.loadSettingsFromLocalStorage();
ACStateManager.register();
await QAMPatch.init();
Backend.applySettings(APPLYTYPE.SET_ALL);
try {
Backend.applySettings(APPLYTYPE.SET_ALL);
} catch (e) {
console.log("Error while applying settings", e);
}
PluginManager.suspendEndHook = SteamClient.System.RegisterForOnResumeFromSuspend(async () => {
setTimeout(() => {
if (Settings.ensureEnable()) {
Expand Down

0 comments on commit c81201d

Please sign in to comment.