context_menu.lua: set user-data/mpv/context-menu/open#17429
context_menu.lua: set user-data/mpv/context-menu/open#17429guidocella wants to merge 1 commit intompv-player:masterfrom
Conversation
|
The Windows menu does not need to update |
|
The main use case would be for pausing when the context menu is open (#16816 (comment)) (context_menu.lua also renders just fine with osc.lua or ModernZ so I guess it's a uosc problem?) |
Yes, I found this problem while using uosc. |
Does that mean it can be supported with native Windows menu? If so that would be nice. The feature is working with an autoprofile. If I had one nitpick, the first menu entry still reads "Pause" at the same time pause is activated. Maybe it should say "Play/Pause" instead? [context-menu-pause]
profile-cond=p['user-data/mpv/context-menu/open']
profile-restore=copy
pause |
|
The Windows code can easily set and unset a property, the question is how the API should be and whether it needs to be different for the Windows menu and the script. You can change the first item to Play/Pause in your menu.conf. |
Closes #17428.
Questions:
user-data?