AmendHub

Download:

jcs

/

wifi_da

/

amendments

/

16

window: We don't need a stored menu resource for a blank menu


jcs made amendment 16 about 1 year ago
--- wi-fi.h Mon Oct 23 09:41:40 2023 +++ wi-fi.h Tue Oct 24 09:55:49 2023 @@ -24,10 +24,8 @@ #define DEBUG_LOGGING 1 #define MAIN_MENU_ID 1 -#define MAIN_MENU_ABOUT_ID 1 -#define MAIN_MENU_QUIT_ID 3 - -#define SSID_MENU_ID 2 +#define MAIN_MENU_ABOUT_ID 1 +#define MAIN_MENU_QUIT_ID 3 #define ERROR_DIALOG_ID 0 --- window.c Sun Oct 22 12:14:42 2023 +++ window.c Tue Oct 24 09:42:59 2023 @@ -57,8 +57,8 @@ create_window(short ctlrefnum) if (signal_icons == NULL) warn("Can't find SICN"); - ssid_menu = GetMenu(OwnedResourceID(SSID_MENU_ID)); - SetItem(ssid_menu, 1, "\pFinding Wi-Fi..."); + ssid_menu = NewMenu(OwnedResourceID(10), "\p"); + InsMenuItem(ssid_menu, "\pFinding Wi-Fi...", 1); SetRect(&ssid_menu_rect, 30, 3, 170, 21); /* ltrb */