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