优化移除容器

This commit is contained in:
2022-12-04 22:28:56 +08:00
parent c8ccc1dff5
commit 66963e6f26
11 changed files with 172 additions and 17 deletions

View File

@@ -334,6 +334,9 @@ def on_addButton_clicked():
QT.thread.start()
def on_delButton_clicked():
if os.path.exists("/tmp/deepin-wine-runner-qemu-lock"):
if QtWidgets.QMessageBox.question(window, "提示", "检测到您的电脑已经运行了 Qemu/Chroot 容器,建议您重启电脑后再删除该容器,否则容易造成数据损失!\n是否取消操作?") == QtWidgets.QMessageBox.Yes:
return
if QtWidgets.QMessageBox.question(window, "提示", "你确定要删除吗?") == QtWidgets.QMessageBox.No:
return
if ui.localWineList.currentIndex().row() < 0: