From 29211b476283412710400312a04ed41e7a7c2f0d Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Thu, 25 Apr 2024 21:33:14 -0400 Subject: [PATCH] Fix infinite load on new profile variant --- .gitignore | 1 + backend/Cargo.lock | 2 +- backend/Cargo.toml | 2 +- package.json | 2 +- src/index.tsx | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5a71389..50c29ac 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ yalc.lock # packaging /PowerTools **.zip +deck.json diff --git a/backend/Cargo.lock b/backend/Cargo.lock index a9c0d7f..0c0b7e5 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1170,7 +1170,7 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "powertools" -version = "2.0.1-beta1" +version = "2.0.2-alpha1" dependencies = [ "async-trait", "chrono", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 01f4f42..074257f 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "powertools" -version = "2.0.1-beta1" +version = "2.0.2-alpha1" edition = "2021" authors = ["NGnius (Graham) "] description = "Backend (superuser) functionality for PowerTools" diff --git a/package.json b/package.json index 76e72f6..e3e3573 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "PowerTools", - "version": "2.0.1-beta1", + "version": "2.0.2-alpha1", "description": "Power tweaks for power users", "scripts": { "build": "shx rm -rf dist && rollup -c", diff --git a/src/index.tsx b/src/index.tsx index a6e88f3..da15091 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -364,6 +364,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => { (ok: boolean) => { backend.log(backend.LogLevel.Debug, "New settings variant ok? " + ok); reload(); + isVariantLoading = false; backend.resolve(backend.waitForComplete(), (_) => { backend.log(backend.LogLevel.Debug, "Trying to tell UI to re-render due to new settings variant"); tryNotifyProfileChange();