From 6fcd471753762eb63a80f460fae3b99a1387a21d Mon Sep 17 00:00:00 2001 From: OSTERITE Date: Thu, 28 Mar 2024 13:48:32 +0100 Subject: [PATCH] fixed issue with information reset being handled at the wrong parts of the main script. Resulting in old information remaining when changin action settings and hotkeys --- src/Main/Main.ahk | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Main/Main.ahk b/src/Main/Main.ahk index b08e53e..098d94b 100644 --- a/src/Main/Main.ahk +++ b/src/Main/Main.ahk @@ -63,14 +63,6 @@ Class Main{ ; Main method used to start the script. Start(){ try{ - if (this.scriptRunning){ - this.DestroyObjectRegistry() - this.SetHotkeysForAllLayers(false) - this.StartupConfigurator := "" - this.ObjectRegister := ObjectRegistry() - ; TODO probably needs to be destroyed... - this.KeyboardLayersInfoRegister := KeyboardLayersInfoRegistry() - } this.RunLogicalStartup() } catch Error as e{ @@ -83,6 +75,14 @@ Class Main{ } RunLogicalStartup(){ + if (this.scriptRunning){ + this.DestroyObjectRegistry() + this.SetHotkeysForAllLayers(false) + this.StartupConfigurator := "" + this.ObjectRegister := ObjectRegistry() + ; TODO probably needs to be destroyed... + this.KeyboardLayersInfoRegister := KeyboardLayersInfoRegistry() + } this.Initialize() this.RunMainStartup() }