Skip to content

Commit 5dd7d63

Browse files
authored
Update EC-Autoclicker.ahk
1 parent ea550d2 commit 5dd7d63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

EC-Autoclicker.ahk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
;@Ahk2Exe-SetCompanyName Expertcoderz
77
;@Ahk2Exe-SetDescription EC Autoclicker
8-
;@Ahk2Exe-SetVersion 1.1.3
8+
;@Ahk2Exe-SetVersion 1.1.4-wip
99

1010
FILE_EXT := ".ac-profile"
1111
REG_KEY_PATH := "HKCU\Software\Expertcoderz\Autoclicker"
@@ -787,15 +787,17 @@ ProfileManage(*) {
787787
}
788788
} catch as e {
789789
add_log "Import Profile error: " e.Message
790+
try RegDeleteKey REG_KEY_PATH "\Profiles\" profileName
790791
MsgBox Format("
791792
(
792793
An error occurred whilst importing the profile '{}' from {}.
793-
This is likely due to corrupt data.
794+
This is usually due to the file's data being corrupt or invalid.
794795

795796
Message: {}
796797
)", profileName, fileLocation, e.Message), "Import Profile", "Iconx 8192"
797798
return
798799
}
800+
799801
refreshProfileList profileName
800802

801803
add_log "Finished importing profile '" profileName "'"

0 commit comments

Comments
 (0)