Skip to content

Commit

Permalink
fixed issue with information reset being handled at the wrong parts o…
Browse files Browse the repository at this point in the history
…f the main script. Resulting in old information remaining when changin action settings and hotkeys
  • Loading branch information
Osterie committed Mar 28, 2024
1 parent 1a0ccfe commit 6fcd471
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Main/Main.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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()
}
Expand Down

0 comments on commit 6fcd471

Please sign in to comment.