5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 18:31:39 +08:00
wails/v3/pkg/application
Falco Gerritsjans 0dc7b3c549
More control over menus (#4031)
* Add prepend and clear method to menus

* Document appending and clearing menus

* Add `Destroy()`
Add notes to documentation.

* Remove menu item from map when destroying

* Remove menu items from map when clearing

* Update v3/pkg/application/menu.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Minor updates

* Fix build error

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-16 12:08:08 +11:00
..
assets/alpha BREAKING CHANGE: wml attributes are now prefixed with data- 2025-01-28 07:37:17 +11:00
application_darwin_delegate.h V3 alpha feature/file association port (#3873) 2024-11-09 08:58:20 +11:00
application_darwin_delegate.m Fix mac/js events 2025-02-02 10:22:11 +11:00
application_darwin.go Single Instance feature. 2024-12-30 21:02:43 +11:00
application_darwin.h [v3 darwin] Add darwin identifier to all C files of darwin 2023-05-30 16:32:00 +08:00
application_debug.go [v3] allow build with garble (#3192) 2025-01-10 16:36:24 +11:00
application_dev.go Fix errors with raising errors! 2024-08-04 19:19:40 +10:00
application_linux.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
application_options.go [v3] Service API cleanup and comments (#4024) 2025-01-23 10:53:48 +00:00
application_production.go Refactor menu functions and streamline devtools toggle across systems 2024-01-21 20:52:32 +11:00
application_windows.go [v3] app quit on message (#3990) 2025-01-11 14:35:32 +11:00
application.go Add systray Show, Hide and Destroy 2025-02-02 17:54:24 +11:00
bindings_test.go [v3] New binding generator (#3468) 2024-05-19 20:40:44 +10:00
bindings.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
clipboard_darwin.go [v3 windows] Add clipboard support 2023-06-10 13:01:10 +10:00
clipboard_linux.go [v3] move linux clipboard logic to linux_cgo 2023-10-02 11:07:12 -05:00
clipboard_windows.go [v3 windows] Add clipboard support 2023-06-10 13:01:10 +10:00
clipboard.go [linux] support clipboard 2023-10-02 20:47:04 +11:00
context_application_event.go V3 alpha feature/file association port (#3873) 2024-11-09 08:58:20 +11:00
context_window_event.go [windows] Drag-n-drop support 2023-10-21 11:21:10 +11:00
context.go Fix build issue 2025-01-17 21:21:32 +11:00
dialogs_darwin_delegate.h Fix default index.html serving. 2024-12-14 11:10:07 +11:00
dialogs_darwin_delegate.m Fix default index.html serving. 2024-12-14 11:10:07 +11:00
dialogs_darwin.go Documentation updates. 2024-12-16 20:00:56 +11:00
dialogs_linux.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
dialogs_windows.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
dialogs.go Single Instance feature. 2024-12-30 21:02:43 +11:00
environment.go Update system.Environment 2024-03-19 20:37:03 +11:00
errors.go merge exp branch 2023-01-18 21:42:49 +11:00
events_common_darwin.go [mac] events updates 2024-09-08 20:14:45 +10:00
events_common_linux.go [linux] fix: update for new events syntax (#3734) 2024-09-08 20:22:42 +10:00
events_common_windows.go Refactored Events (#3731) 2024-09-07 16:39:02 +10:00
events_test.go Refactored Events (#3731) 2024-09-07 16:39:02 +10:00
events.go [V3] Add docs for event.Sender (#4075) 2025-02-15 07:17:47 +11:00
image.go V3 alpha linux dbus (#2996) 2023-10-21 11:39:46 +11:00
keys_darwin.go merge exp branch 2023-01-18 21:42:49 +11:00
keys_linux.go Linux Keybinds 2023-11-06 10:49:11 -06:00
keys_windows.go Fix modifier processing on windows. 2023-10-15 13:53:31 +11:00
keys.go Fix tests 2024-08-04 21:28:15 +10:00
linux_cgo.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
linux_purego.go [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
logger_dev_windows.go Reduce flicker. 2024-12-27 09:09:00 +11:00
logger_dev.go Initial implementation of dev mode. 2024-01-19 21:34:49 +11:00
logger_prod.go Initial implementation of dev mode. 2024-01-19 21:34:49 +11:00
mainthread_darwin.go [v3 mac] Better main thread calls 2023-06-16 20:48:57 +10:00
mainthread_linux.go [WIP] refactor CGO methods 2024-03-06 15:43:50 -06:00
mainthread_windows.go [v3] Make Windows window class configurable (#3682) 2024-08-20 18:20:44 +10:00
mainthread.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
menu_darwin.go Fix Hidden Mac MenuItem. 2025-02-16 11:10:19 +11:00
menu_linux.go Menu improvements (#3492) 2024-05-20 21:15:02 +10:00
menu_test.go Menu improvements (#3492) 2024-05-20 21:15:02 +10:00
menu_windows.go [windows] Fix radio group menu items 2024-12-06 22:00:43 +11:00
menu.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
menuitem_darwin.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
menuitem_darwin.h Ensure some menuitem methods are run on the main thread. 2025-01-12 15:05:39 +11:00
menuitem_darwin.m [v3 darwin] Add darwin identifier to all C files of darwin 2023-05-30 16:32:00 +08:00
menuitem_dev.go Significant updates to mac menu items. More roles. More fixes to come. 2024-09-12 20:51:07 +10:00
menuitem_linux.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
menuitem_production.go Significant updates to mac menu items. More roles. More fixes to come. 2024-09-12 20:51:07 +10:00
menuitem_roles.go Fix typos 2025-01-16 20:25:07 +11:00
menuitem_selectors_darwin.go Fix typos 2025-01-16 20:25:07 +11:00
menuitem_test.go Fix tests 2024-08-04 21:28:15 +10:00
menuitem_windows.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
menuitem.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
messageprocessor_application.go [v3] implement Window interface 2023-09-28 11:39:39 -05:00
messageprocessor_browser.go Add BrowserOpenURL and BrowserOpenFile to App. 2023-10-11 20:23:59 +11:00
messageprocessor_call.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
messageprocessor_clipboard.go [v3] implement Window interface 2023-09-28 11:39:39 -05:00
messageprocessor_contextmenu.go # Conflicts: 2025-01-17 21:19:23 +11:00
messageprocessor_dialog.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
messageprocessor_events.go Event cancellation for standard listeners. 2025-01-27 09:29:22 +11:00
messageprocessor_params.go [v3 mac] Better logging 2023-08-18 09:58:43 +10:00
messageprocessor_screens.go Application: increase message buffer sizes, process all messages in goroutine, Add IsDebug to environment info. 2023-12-29 12:48:26 +11:00
messageprocessor_system.go Application: increase message buffer sizes, process all messages in goroutine, Add IsDebug to environment info. 2023-12-29 12:48:26 +11:00
messageprocessor_window.go [v3] Rename AbsolutePosition() to Position() (#3611) 2024-07-15 19:27:21 +10:00
messageprocessor.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
panic_handler.go Default panic handler should fatal. Update docs and example. 2025-01-21 06:44:28 +11:00
path.go *BREAKING CHANGE* move Path and Paths methods into application package. 2025-01-24 08:09:29 +11:00
popupmenu_windows.go [windows] Fix radio group menu items 2024-12-06 22:00:43 +11:00
roles_dev.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
roles_production.go Refactor menu functions and streamline devtools toggle across systems 2024-01-21 20:52:32 +11:00
roles.go Breaking Change: Service method names 2025-01-16 07:47:23 +11:00
screen_darwin.go [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
screen_linux.go fix screens 2024-03-06 16:59:13 -06:00
screen_windows.go [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
screenmanager_test.go [v3-Windows] New DIP system for Enhanced High DPI Monitor Support (#3665) 2024-09-22 08:38:30 +10:00
screenmanager.go [mac] fix rogue brace 2024-09-23 20:36:58 +10:00
services.go [v3] Service API cleanup and comments (#4024) 2025-01-23 10:53:48 +00:00
single_instance_darwin.go Single Instance feature. 2024-12-30 21:02:43 +11:00
single_instance_linux.go Single Instance feature. 2024-12-30 21:02:43 +11:00
single_instance_windows.go Single Instance feature. 2024-12-30 21:02:43 +11:00
single_instance.go Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
systemtray_darwin.go Add systray.SetTooltip 2025-02-08 14:01:22 +11:00
systemtray_darwin.h Fix macOS systray DPI scaling and offset. 2024-12-13 23:46:27 +11:00
systemtray_darwin.m Fix macOS systray DPI scaling and offset. 2024-12-13 23:46:27 +11:00
systemtray_linux.go More control over menus (#4031) 2025-02-16 12:08:08 +11:00
systemtray_windows.go Add systray.SetTooltip 2025-02-08 14:01:22 +11:00
systemtray.go Add systray.SetTooltip 2025-02-08 14:01:22 +11:00
TODO.md merge exp branch 2023-01-18 21:42:49 +11:00
webview_window_darwin_dev.go Add more macOS version checks 2024-06-08 15:16:33 +10:00
webview_window_darwin_drag.h [v3 darwin] Add darwin identifier to all C files of darwin 2023-05-30 16:32:00 +08:00
webview_window_darwin_drag.m [darwin] Refactor events into mac specific files 2023-10-03 08:33:58 +11:00
webview_window_darwin_production.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
webview_window_darwin.go Event cancellation for standard listeners. 2025-01-27 09:29:22 +11:00
webview_window_darwin.h Fix macOS systray DPI scaling and offset. 2024-12-13 23:46:27 +11:00
webview_window_darwin.m chore: Publish @wailsio/runtime 3.0.0-alpha.42 2025-01-31 20:04:11 +00:00
webview_window_linux_dev.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
webview_window_linux_production.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
webview_window_linux.go Add menu option for Linux 2025-02-03 20:33:59 +11:00
webview_window_options.go Add menu option for Linux 2025-02-03 20:33:59 +11:00
webview_window_windows_devtools.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
webview_window_windows_production.go ToggleDevTools -> OpenDevTools 2024-03-06 11:43:12 -06:00
webview_window_windows.go The application menu is now macOS only. 2025-02-03 20:08:31 +11:00
webview_window.go Fixed event deadlock for macOS 2025-02-02 14:23:34 +11:00
window.go # Conflicts: 2025-01-17 21:19:23 +11:00