Skip to content

Commit

Permalink
fix: changing auto-save preferences marking song as unsaved
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentroen committed Apr 4, 2024
1 parent b2d6a44 commit 5815ef9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/draw_window_preferences/draw_window_preferences.gml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ function draw_window_preferences() {
if (language != 1) {if (draw_checkbox(x1 + 296, y1 + 90 + (theme = 3) * 22, autosave, "Enable auto-saving", "Whether the song should automatically\nbe saved every now and then.", false, true)) autosave=!autosave}
else {if (draw_checkbox(x1 + 296, y1 + 90 + (theme = 3) * 22, autosave, "启用自动保存", "歌曲是否每过一段时间自动保存一次。", false, true)) autosave=!autosave}
if (as != autosave) {
changed = 1
if (autosave = 0) tonextsave = 0
if (autosave = 1) tonextsave = autosavemins
}
Expand All @@ -218,7 +217,7 @@ function draw_window_preferences() {
else draw_text_dynamic(x1 + 326, y1 + 110 + (theme = 3) * 22, "间隔: 分钟")
as = autosavemins
autosavemins = median(1, draw_dragvalue(2, x1 + 375, y1 + 110 + (theme = 3) * 22, autosavemins, 1), 60)
if (autosavemins != a) {changed = 1 tonextsave = autosavemins}
if (autosavemins != a) {tonextsave = autosavemins}
}
if (language != 1) popup_set_window(x1 + 326, y1 + 110 + (theme = 3) * 22, 180, 16, "The amount of minutes between each auto-save.")
else popup_set_window(x1 + 326, y1 + 110 + (theme = 3) * 22, 180, 16, "自动保存中间的间隔。")
Expand Down

0 comments on commit 5815ef9

Please sign in to comment.