Skip to content

Commit 56e0843

Browse files
committed
fix: prevent greeting window from appearing when opening URL
1 parent 261f974 commit 56e0843

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ function control_draw() {
23522352
}
23532353

23542354
// Draw song download progress bar
2355-
if (song_download_status == 1) {
2355+
if (protocol_data != pointer_null && song_download_status < 2) {
23562356
window = -1
23572357
if (language != 1) draw_downloadprogress("Download", "Downloading song...", song_downloaded_size, song_total_size)
23582358
else draw_downloadprogress("下载", "正在下载乐曲......", song_downloaded_size, song_total_size)

scripts/download_song_from_url/download_song_from_url.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function download_song_from_url() {
2323
// Download was interrupted, may have been successful or not (if connection was interrupted)
2424
show_debug_message("Download interrupted; may have been successful our not");
2525
song_download_data = -1;
26-
song_download_status = 0;
26+
song_download_status = 2;
2727

2828
// The sizeDownloaded and contentLength variables may never be reported if the song is downloaded in one go.
2929
// To avoid this from happening, we compare the Content-Length response header with the downloaded file's disk size.

0 commit comments

Comments
 (0)