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

+19
View File
@@ -1764,6 +1764,25 @@ H264
标准代理端口=Standard-Proxy-Port
测试运行=Testlauf
Ghost执行=Ghost-Lauf
通知=Benachrichtigen
压缩=Komprimieren
解压缩=Entpacken
输入口令=Passwort eingeben
导入口令=Lizenz importieren
口令生成=Autorisierung generieren
V2私钥设置=V2-Privatschluessel
测试 bin 文件=bin-Datei testen
解混淆+测试 bin 文件=Entschleiern+bin testen
迁移数据=Daten sichern
切换语言=Sprache wechseln
语言包目录=Sprachpaket-Verzeichnis
刷新插件=Plugins aktualisieren
下级FRP代理设置=FRPS fuer Untergeordnete
打开Web远程桌面=Web-Remotedesktop oeffnen
连接管理=Verbindungsverwaltung
远程交谈=Fernchat
远程画板=Fern-Zeichenbrett
虚拟屏幕(实验功能)=Virtueller Bildschirm (Experimentell)
使用天数:=Nutzungstage:
登录通知=Anmeldebenachrichtigung
反馈=Feedback
+15
View File
@@ -1769,6 +1769,21 @@ H264
标准代理端口=Standard Proxy Port
测试运行=Test Run
Ghost执行=Ghost Run
通知=Notify
压缩=Compress
解压缩=Uncompress
输入口令=Input Password
导入口令=Import License
口令生成=Auth Generate
V2私钥设置=V2 Private Key
测试 bin 文件=Test bin File
解混淆+测试 bin 文件=Deobfuscate+Test bin
迁移数据=Backup Data
语言包目录=Language Pack Directory
刷新插件=Refresh Plugins
下级FRP代理设置=FRPS for Subordinates
打开Web远程桌面=Open Web Remote Desktop
虚拟屏幕(实验功能)=Virtual Screen (Experimental)
使用天数:=Usage days:
登录通知=Login Notify
反馈=Feedback
+17
View File
@@ -1762,6 +1762,23 @@ H264
标准代理端口=標準代理端口
测试运行=測試運行
Ghost执行=Ghost執行
通知=通知
压缩=壓縮
解压缩=解壓縮
输入口令=輸入密碼
导入口令=匯入口令
口令生成=密碼產生
V2私钥设置=V2 私鑰設定
测试 bin 文件=測試 bin 檔案
解混淆+测试 bin 文件=解混淆+測試 bin 檔案
迁移数据=遷移資料
切换语言=切換語言
语言包目录=語言包目錄
刷新插件=重新整理外掛程式
下级FRP代理设置=下級 FRP 代理設定
打开Web远程桌面=開啟 Web 遠端桌面
降权运行=以降權身分執行
虚拟屏幕(实验功能)=虛擬螢幕(實驗功能)
使用天数:=使用天數:
登录通知=登錄通知
反馈=反饋