Feature: Bring feature limits in line with the current menus

The "feature limits" dialog offered by 主控生成 had drifted well behind the
UI: a whole 高级 menu, five toolbar buttons and a couple of dozen context
menu entries could not be restricted at all, and several items were listed
under names that no longer appear anywhere.

The three tabs now follow the real resources. Menu items are listed in the
order of IDR_MENU_MAIN and carry the same text minus accelerators; the
toolbar covers all 19 IDR_TOOLBAR_MAIN buttons; the context menu lists the
nested 实验功能 / 客户管理 / 远程控制 / 机器管理 / 客户代理 / 执行程序 entries
individually and the two runtime-built ones (协议切换, 执行代码) as groups.
That makes 57 / 19 / 46 items, each with its own bit; new bits were added
at the end of each field so the existing positions stay put.

Enforcement was extended to match, and while wiring it up one long-standing
bug surfaced: DeleteMenu(MF_BYCOMMAND) only reaches items of the menu it is
called on, so hiding an entry of a nested popup had always been a no-op.
Nested items are now deleted through their own submenu handle, and a popup
whose items are all hidden is removed together with its parent entry, so
no empty popup is left behind. 协议切换 is inserted relative to where
实验功能 ended up, which keeps it next to it either way; 执行代码 is simply
skipped when restricted.

The missing labels were added to en_US, zh_TW and de_DE.

Co-Authored-By: deepseek-flash
This commit is contained in:
yuanyuanxianganddeepseek-flash committed 2026-11-01 12:48:44 +01:00
1 parent 559681ea01
commit 8807321f1d
7 files changed
+529 -205

No files matched your search

+17
View File
@@ -1762,6 +1762,23 @@ H264
标准代理端口=標準代理端口
测试运行=測試運行
Ghost执行=Ghost執行
通知=通知
压缩=壓縮
解压缩=解壓縮
输入口令=輸入密碼
导入口令=匯入口令
口令生成=密碼產生
V2私钥设置=V2 私鑰設定
测试 bin 文件=測試 bin 檔案
解混淆+测试 bin 文件=解混淆+測試 bin 檔案
迁移数据=遷移資料
切换语言=切換語言
语言包目录=語言包目錄
刷新插件=重新整理外掛程式
下级FRP代理设置=下級 FRP 代理設定
打开Web远程桌面=開啟 Web 遠端桌面
降权运行=以降權身分執行
虚拟屏幕(实验功能)=虛擬螢幕(實驗功能)
使用天数:=使用天數:
登录通知=登錄通知
反馈=反饋