Skip to content

Commit 485c885

Browse files
committed
Add CHDIR in window_view_mandelbrot test and restore full gui_alert functionality
1 parent cf63bb3 commit 485c885

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

internal/c/parts/gui/gui.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ int gui_alert(const char *message, const char *title, const char *type) {
351351
// TODO: Probably we should adapt this to a timed terminal message box or prompt when running in $CONSOLE:ONLY mode.
352352
fprintf(stderr, "\nRuntime error: %s\n", message);
353353
fflush(stderr);
354-
return 0; // temporarily disable the dialog box to debug CI hangs
355-
//return tinyfd_messageBox(title, message, type, "error", 1);
354+
return tinyfd_messageBox(title, message, type, "error", 1);
356355
}
357356

358357
/// @brief This is used internally by libqb to show warning and failure messages

tests/compile_tests/view/window_view_mandelbrot.bas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ DEFLNG A-Z
22
OPTION _EXPLICIT
33
$CONSOLE:ONLY
44

5+
CHDIR _STARTDIR$
6+
57
CONST MAXLOOP = 30, MAXSIZE = 1000000
68
CONST WLeft = -1000, WRight = 250, WTop = 625, WBottom = -625
79
CONST VLeft = 110, VRight = 529, VTop = 5, VBottom = 179

0 commit comments

Comments
 (0)