Skip to content

Commit dff87d1

Browse files
committed
Hotfix of error with My Recipes at first launch
1 parent 38b1a64 commit dff87d1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Lib/cls_cfg.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Class Cfg {
1616
"User_Language", "",
1717
"Validate_With_CaretPos", "True",
1818
"F13F24", "False",
19-
"FirstMessage", "True",
19+
"First_Message", "True",
2020
"Turn_Off_Autocheck_Update", "False",
2121
"Bind_Register_Tooltip_Progress_Bar", "True",
2222
],
@@ -462,9 +462,9 @@ Class Cfg {
462462
}
463463
}
464464

465-
if this.Get("FirstMessage", , True, "bool") {
465+
if this.Get("First_Message", , True, "bool") {
466466
MsgBox(Locale.Read("first_launch_message"), App.Title())
467-
this.Set("False", "FirstMessage")
467+
this.Set("False", "First_Message")
468468
}
469469
}
470470

src/Lib/cls_my_recipes.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Class MyRecipes {
9292
for i, key in this.defaulRecipes {
9393
if Mod(i, 2) == 1 {
9494
value := this.defaulRecipes[i + 1]
95-
this.AddEdit(key, { name: value.name, recipe: value.recipe, result: value.result }, True)
95+
this.AddEdit(key, { name: value.name, recipe: value.recipe, result: value.result, tags: "", previousSection: key }, True)
9696
}
9797
}
9898
}
@@ -305,9 +305,9 @@ Class MyRecipes {
305305
if RegExMatch(sectionName, this.sectionValidator) {
306306
params.result := this.FormatResult(params.result)
307307

308-
if params.section != params.previousSection {
308+
if sectionName != params.previousSection {
309309
FileCopy(this.filePath, this.filePath ".bak", 1)
310-
Util.INIRenameSection(this.filePath, params.previousSection, params.section)
310+
Util.INIRenameSection(this.filePath, params.previousSection, sectionName)
311311
}
312312

313313
IniWrite(params.name, this.filePath, sectionName, "name")

src/workflow.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $message =@"
88
<tr>
99
<td><b>Stamp</b></td>
1010
<td>
11-
&#128228;&emsp14;2025-05-05 18:36:06
11+
&#128228;&emsp14;2025-05-05 19:14:03
1212
</td>
1313
</tr>
1414
<tr>

0 commit comments

Comments
 (0)