Skip to content

Commit

Permalink
ACP
Browse files Browse the repository at this point in the history
1) System stats and session stats are single page only
2) Enable new look menus
3) SessionStats were not refreshed after deiconify
4) Menu's were not freed correctly
  • Loading branch information
dmcoles committed Oct 12, 2023
1 parent 50956cc commit 894837f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ACP.e
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ PROC handleEditGadget(im:PTR TO intuimessage,ig)
showSessionStats(eWin)
ENDSELECT
CASE GAD_TOPSBOX
IF(control)
IF(control) OR (topOption>=SYSTEM_STATS)
control:=0
SELECT topOption
CASE LAST_CALLERS
Expand Down Expand Up @@ -4200,6 +4200,7 @@ PROC main() HANDLE
WA_MAXHEIGHT, -1,
WA_ZOOM, dim,
WA_AUTOADJUST, 1,
WA_NEWLOOKMENUS, 1,
WA_PUBSCREEN, IF EstrLen(publicName)=0 THEN NIL ELSE scr,
WA_PUBSCREENFALLBACK, 1,
WA_GADGETS, gadgets,
Expand Down Expand Up @@ -4296,6 +4297,8 @@ PROC main() HANDLE
showLastDownloads(eWin)
CASE SYSTEM_STATS
showSystemStats(eWin)
CASE SESSION_STATS
showSessionStats(eWin)
ENDSELECT
FOR i:=0 TO MAX_NODES-1
IF(StrLen(startNode[i])>0)
Expand Down Expand Up @@ -4368,6 +4371,7 @@ EXCEPT DO
Permit()
ENDIF
ENDIF
FreeMenus(eWinM)

IF msg THEN FreeMem(msg,SIZEOF acpMessage)

Expand Down

0 comments on commit 894837f

Please sign in to comment.