Skip to content

Commit f25fe18

Browse files
committed
Disable included update checking for macos
1 parent 5ef4f76 commit f25fe18

2 files changed

Lines changed: 27 additions & 25 deletions

File tree

scripts/control_create/control_create.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function control_create() {
161161

162162
// Application
163163
update = 0
164-
check_update = 1
164+
check_update = (os_type != os_macosx)
165165
check_prerelease = is_prerelease
166166
update_success = 0
167167
show_welcome = 1

scripts/draw_window_preferences/draw_window_preferences.gml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -163,35 +163,37 @@ function draw_window_preferences() {
163163
} else {
164164
if (draw_checkbox(x1 + 40, y1 + 90 + (theme = 3) * 22, show_welcome, "显示欢迎界面", "打开软件时是否显示欢迎界面。", false, true)) show_welcome=!show_welcome
165165
}
166-
if (language != 1) {
167-
if (draw_checkbox(x1 + 40, y1 + 110 + (theme = 3) * 22, check_update, "Check for updates", "Whether to check for any updates\nwhen the program is opened.", false, true)) check_update=!check_update
168-
if (draw_checkbox(x1 + 60, y1 + 130 + (theme = 3) * 22, check_prerelease, "Check for development versions", "Whether to check for development versions in addition to stable releases.\nDevelopment versions contain the latest improvements, but may be potentially unstable.", !check_update, false)) {
169-
check_prerelease = !check_prerelease
170-
if (!is_prerelease && check_prerelease) {
171-
if (!message_yesnocancel("Development versions are experimental and may be unstable. To avoid data corruption, it's highly recommended that you install Note Block Studio to a separate directory before enabling this option.\n\nProceed?", "Warning")) {
172-
check_prerelease = !check_prerelease // undo button check
173-
}
174-
} else if (is_prerelease && !check_prerelease) {
175-
if (!message_yesnocancel("You're currently running a development version of Note Block Studio. By disabling this option, you will be prompted to downgrade to the latest stable version the next time you open the program.\n\nProceed?", "Warning")) {
176-
check_prerelease = !check_prerelease // undo button uncheck
166+
if (os_type != os_macosx) {
167+
if (language != 1) {
168+
if (draw_checkbox(x1 + 40, y1 + 110 + (theme = 3) * 22, check_update, "Check for updates", "Whether to check for any updates\nwhen the program is opened.", false, true)) check_update=!check_update
169+
if (draw_checkbox(x1 + 60, y1 + 130 + (theme = 3) * 22, check_prerelease, "Check for development versions", "Whether to check for development versions in addition to stable releases.\nDevelopment versions contain the latest improvements, but may be potentially unstable.", !check_update, false)) {
170+
check_prerelease = !check_prerelease
171+
if (!is_prerelease && check_prerelease) {
172+
if (!message_yesnocancel("Development versions are experimental and may be unstable. To avoid data corruption, it's highly recommended that you install Note Block Studio to a separate directory before enabling this option.\n\nProceed?", "Warning")) {
173+
check_prerelease = !check_prerelease // undo button check
174+
}
175+
} else if (is_prerelease && !check_prerelease) {
176+
if (!message_yesnocancel("You're currently running a development version of Note Block Studio. By disabling this option, you will be prompted to downgrade to the latest stable version the next time you open the program.\n\nProceed?", "Warning")) {
177+
check_prerelease = !check_prerelease // undo button uncheck
178+
}
177179
}
178180
}
179-
}
180-
} else {
181-
if (draw_checkbox(x1 + 40, y1 + 110 + (theme = 3) * 22, check_update, "检查更新", "打开软件时是否检查更新。", false, true)) check_update=!check_update
182-
if (draw_checkbox(x1 + 60, y1 + 130 + (theme = 3) * 22, check_prerelease, "检查开发版本", "是否在稳定版之外额外检测开发版。\n开发版本包含最新的内容,但可能不稳定。", !check_update, false)) {
183-
check_prerelease = !check_prerelease
184-
if (!is_prerelease && check_prerelease) {
185-
if (!message_yesnocancel("开发版本仍在测试中,可能会不稳定。为了防止数据损坏,强烈建议您在开启该选项前将 Note Block Studio 安装到一个单独的目录。\n\n继续吗?", "警告")) {
186-
check_prerelease = !check_prerelease // undo button check
187-
}
188-
} else if (is_prerelease && !check_prerelease) {
189-
if (!message_yesnocancel("您正在运行一个 Note Block Studio 的开发版本。关闭这个选项后,在下次开启此程序时您将会被提示降级至最新的稳定版。\n\n继续吗?", "警告")) {
190-
check_prerelease = !check_prerelease // undo button uncheck
181+
} else {
182+
if (draw_checkbox(x1 + 40, y1 + 110 + (theme = 3) * 22, check_update, "检查更新", "打开软件时是否检查更新。", false, true)) check_update=!check_update
183+
if (draw_checkbox(x1 + 60, y1 + 130 + (theme = 3) * 22, check_prerelease, "检查开发版本", "是否在稳定版之外额外检测开发版。\n开发版本包含最新的内容,但可能不稳定。", !check_update, false)) {
184+
check_prerelease = !check_prerelease
185+
if (!is_prerelease && check_prerelease) {
186+
if (!message_yesnocancel("开发版本仍在测试中,可能会不稳定。为了防止数据损坏,强烈建议您在开启该选项前将 Note Block Studio 安装到一个单独的目录。\n\n继续吗?", "警告")) {
187+
check_prerelease = !check_prerelease // undo button check
188+
}
189+
} else if (is_prerelease && !check_prerelease) {
190+
if (!message_yesnocancel("您正在运行一个 Note Block Studio 的开发版本。关闭这个选项后,在下次开启此程序时您将会被提示降级至最新的稳定版。\n\n继续吗?", "警告")) {
191+
check_prerelease = !check_prerelease // undo button uncheck
192+
}
191193
}
192194
}
193195
}
194-
}
196+
}
195197
if (wmenu = 1 && !mouse_check_button(mb_left)) wmenu = 0
196198
// Auto-saving
197199
if (!isplayer) {

0 commit comments

Comments
 (0)