mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-07-20 04:22:22 +08:00
优化删除容器机制
This commit is contained in:
parent
5dcc4a9b69
commit
5ceba0033d
@ -349,8 +349,8 @@ def on_addButton_clicked():
|
|||||||
|
|
||||||
def on_delButton_clicked():
|
def on_delButton_clicked():
|
||||||
if os.path.exists("/tmp/deepin-wine-runner-qemu-lock"):
|
if os.path.exists("/tmp/deepin-wine-runner-qemu-lock"):
|
||||||
if QtWidgets.QMessageBox.question(window, "提示", "检测到您的电脑已经运行了 Qemu/Chroot 容器,建议您重启电脑后再删除该容器,否则容易造成数据损失!\n是否取消操作?") == QtWidgets.QMessageBox.Yes:
|
QtWidgets.QMessageBox.question(window, "提示", "检测到您的电脑已经运行了 Qemu/Chroot 容器,请重启后再移除")
|
||||||
return
|
return
|
||||||
if QtWidgets.QMessageBox.question(window, "提示", "你确定要删除吗?") == QtWidgets.QMessageBox.No:
|
if QtWidgets.QMessageBox.question(window, "提示", "你确定要删除吗?") == QtWidgets.QMessageBox.No:
|
||||||
return
|
return
|
||||||
if ui.localWineList.currentIndex().row() < 0:
|
if ui.localWineList.currentIndex().row() < 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user