Fix infinite load on new profile variant

This commit is contained in:
NGnius (Graham) 2024-04-25 21:33:14 -04:00
parent c2f834858c
commit 29211b4762
5 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -49,3 +49,4 @@ yalc.lock
# packaging
/PowerTools
**.zip
deck.json

2
backend/Cargo.lock generated
View file

@ -1170,7 +1170,7 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "powertools"
version = "2.0.1-beta1"
version = "2.0.2-alpha1"
dependencies = [
"async-trait",
"chrono",

View file

@ -1,6 +1,6 @@
[package]
name = "powertools"
version = "2.0.1-beta1"
version = "2.0.2-alpha1"
edition = "2021"
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
description = "Backend (superuser) functionality for PowerTools"

View file

@ -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",

View file

@ -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();