Skip to content

Commit

Permalink
Fix showing of GUI when opened multiple times. closes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-y committed Dec 9, 2022
1 parent 25cff60 commit cb88e17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Avalanche_rev.h
@@ -1,6 +1,6 @@
#define VERSION 1
#define REVISION 8
#define DATE "7.12.2022"
#define DATE "9.12.2022"
#define VERS "Avalanche 1.8"
#define VSTRING "Avalanche 1.8 (7.12.2022)\r\n"
#define VERSTAG "\0$VER: Avalanche 1.8 (7.12.2022)"
#define VSTRING "Avalanche 1.8 (9.12.2022)\r\n"
#define VERSTAG "\0$VER: Avalanche 1.8 (9.12.2022)"
6 changes: 3 additions & 3 deletions src/Avalanche_rev.i
Expand Up @@ -2,17 +2,17 @@ VERSION EQU 1
REVISION EQU 8

DATE MACRO
dc.b '7.12.2022'
dc.b '9.12.2022'
ENDM

VERS MACRO
dc.b 'Avalanche 1.8'
ENDM

VSTRING MACRO
dc.b 'Avalanche 1.8 (7.12.2022)',13,10,0
dc.b 'Avalanche 1.8 (9.12.2022)',13,10,0
ENDM

VERSTAG MACRO
dc.b 0,'$VER: Avalanche 1.8 (7.12.2022)',0
dc.b 0,'$VER: Avalanche 1.8 (9.12.2022)',0
ENDM
6 changes: 3 additions & 3 deletions src/Avalanche_rev.s
Expand Up @@ -2,20 +2,20 @@ VERSION = 1
REVISION = 8

.macro DATE
.ascii "7.12.2022"
.ascii "9.12.2022"
.endm

.macro VERS
.ascii "Avalanche 1.8"
.endm

.macro VSTRING
.ascii "Avalanche 1.8 (7.12.2022)"
.ascii "Avalanche 1.8 (9.12.2022)"
.byte 13,10,0
.endm

.macro VERSTAG
.byte 0
.ascii "$VER: Avalanche 1.8 (7.12.2022)"
.ascii "$VER: Avalanche 1.8 (9.12.2022)"
.byte 0
.endm
5 changes: 3 additions & 2 deletions src/avalanche.c
Expand Up @@ -654,6 +654,7 @@ int main(int argc, char **argv)
/* ARexx port did not already exist */
gui(WBenchMsg, rxsig);
} else {
BOOL arc_opened = FALSE;
if(WBenchMsg) {
struct WBArg *wbarg;

Expand All @@ -668,11 +669,11 @@ int main(int argc, char **argv)
open_archive_from_wbarg_arexx(wbarg);
}
}
arc_opened = TRUE;
}
} else {
ami_arexx_send("SHOW");
}
}
if(arc_opened == FALSE) ami_arexx_send("SHOW");
}

ami_arexx_cleanup();
Expand Down

0 comments on commit cb88e17

Please sign in to comment.