mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
支持禁用/启用 wine 容器是否生成快捷方式的功能
This commit is contained in:
parent
6276dfb0f9
commit
0c2242b1f0
@ -2146,8 +2146,12 @@ installDxvk = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "安装 D
|
|||||||
uninstallDxvk = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "卸载 DXVK"))
|
uninstallDxvk = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "卸载 DXVK"))
|
||||||
dxvkMenu.addAction(installDxvk)
|
dxvkMenu.addAction(installDxvk)
|
||||||
dxvkMenu.addAction(uninstallDxvk)
|
dxvkMenu.addAction(uninstallDxvk)
|
||||||
wineOption.addSeparator()
|
|
||||||
wineOption.addAction(deleteDesktopIcon)
|
wineOption.addAction(deleteDesktopIcon)
|
||||||
|
settingWineBottleCreateLink = wineOption.addMenu(QtCore.QCoreApplication.translate("U", "允许/禁止指定 wine 容器生成快捷方式"))
|
||||||
|
enabledWineBottleCreateLink = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "允许指定 wine 容器生成快捷方式"))
|
||||||
|
disbledWineBottleCreateLink = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "禁止指定 wine 容器生成快捷方式"))
|
||||||
|
settingWineBottleCreateLink.addAction(enabledWineBottleCreateLink)
|
||||||
|
settingWineBottleCreateLink.addAction(disbledWineBottleCreateLink)
|
||||||
w1.triggered.connect(OpenWineBotton)
|
w1.triggered.connect(OpenWineBotton)
|
||||||
w2.triggered.connect(InstallWineFont)
|
w2.triggered.connect(InstallWineFont)
|
||||||
w3.triggered.connect(OpenWineFontPath)
|
w3.triggered.connect(OpenWineFontPath)
|
||||||
@ -2181,6 +2185,8 @@ wm4_2.triggered.connect(lambda: os.system(f"'{programPath}/launch.sh' deepin-ter
|
|||||||
installDxvk.triggered.connect(InstallDXVK)
|
installDxvk.triggered.connect(InstallDXVK)
|
||||||
uninstallDxvk.triggered.connect(UninstallDXVK)
|
uninstallDxvk.triggered.connect(UninstallDXVK)
|
||||||
deleteDesktopIcon.triggered.connect(DeleteDesktopIcon)
|
deleteDesktopIcon.triggered.connect(DeleteDesktopIcon)
|
||||||
|
enabledWineBottleCreateLink.triggered.connect(lambda: RunWineProgram("reg' delete 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe '/f"))
|
||||||
|
disbledWineBottleCreateLink.triggered.connect(lambda: RunWineProgram("reg' add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v winemenubuilder.exe '/f"))
|
||||||
|
|
||||||
virtualMachine = menu.addMenu(QtCore.QCoreApplication.translate("U", "虚拟机(&V)"))
|
virtualMachine = menu.addMenu(QtCore.QCoreApplication.translate("U", "虚拟机(&V)"))
|
||||||
v1 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "使用 Virtualbox 虚拟机运行 Windows 应用"))
|
v1 = QtWidgets.QAction(QtCore.QCoreApplication.translate("U", "使用 Virtualbox 虚拟机运行 Windows 应用"))
|
||||||
|
Loading…
Reference in New Issue
Block a user