diff --git a/release/app/package-lock.json b/release/app/package-lock.json index c3730d9..f9c6b6e 100644 --- a/release/app/package-lock.json +++ b/release/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "hdr-launcher", - "version": "0.7.4", + "version": "0.7.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hdr-launcher", - "version": "0.7.4", + "version": "0.7.5", "hasInstallScript": true, "license": "MIT" } diff --git a/release/app/package.json b/release/app/package.json index e76633b..f0410ba 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,7 +1,7 @@ { "name": "hdr-launcher", "author": "techyCoder81", - "version": "0.7.4", + "version": "0.7.5", "description": "The HDR Launcher", "repository": "techyCoder81/hdr-launcher-react", "license": "MIT", diff --git a/src/renderer/routes/stage_config/stage_config_menu.tsx b/src/renderer/routes/stage_config/stage_config_menu.tsx index 7ebdcaf..036640d 100644 --- a/src/renderer/routes/stage_config/stage_config_menu.tsx +++ b/src/renderer/routes/stage_config/stage_config_menu.tsx @@ -62,22 +62,18 @@ export default function StageConfigMenu() { return (
- { - setInitialized(false); - navigate(Pages.MAIN_MENU); - }} - className="simple-button-bigger" - onFocus={() => {}} - autofocus - style={{margin: "4px 2px 4px 4px"}} - /> {initialized ? ( { - setInitialized(false); + saveStageConfig(ACTIVE_CONFIG_FILE, { + enabled, + pages, + }) + .then(() => { + navigate(Pages.MAIN_MENU); + }) + .catch((e) => alert(`failed to save stage config: ${e}`)); }} className="simple-button-bigger" onFocus={() => {}} @@ -85,20 +81,24 @@ export default function StageConfigMenu() { style={{margin: "4px 2px 4px 4px"}} /> ) : ( -
+ { + setInitialized(false); + navigate(Pages.MAIN_MENU); + }} + className="simple-button-bigger" + onFocus={() => {}} + autofocus + style={{margin: "4px 2px 4px 4px"}} + /> )} + {initialized ? ( { - saveStageConfig(ACTIVE_CONFIG_FILE, { - enabled, - pages, - }) - .then(() => { - navigate(Pages.MAIN_MENU); - }) - .catch((e) => alert(`failed to save stage config: ${e}`)); + setInitialized(false); }} className="simple-button-bigger" onFocus={() => {}} @@ -108,7 +108,6 @@ export default function StageConfigMenu() { ) : (
)} -
{initialized && stages ? (
diff --git a/switch/Cargo.lock b/switch/Cargo.lock index 164b465..716d8f9 100644 --- a/switch/Cargo.lock +++ b/switch/Cargo.lock @@ -231,7 +231,7 @@ dependencies = [ [[package]] name = "hdr-launcher-react" -version = "0.7.4" +version = "0.7.5" dependencies = [ "anyhow", "arcropolis-api", diff --git a/switch/Cargo.toml b/switch/Cargo.toml index 28c5e3b..4da7dd5 100644 --- a/switch/Cargo.toml +++ b/switch/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdr-launcher-react" -version = "0.7.4" +version = "0.7.5" authors = ["techyCoder81"] edition = "2021"