支持取消挂载容器

This commit is contained in:
2022-12-02 22:26:10 +08:00
parent 9fdc3a998c
commit bcebe543cc
3 changed files with 7 additions and 5 deletions

View File

@@ -350,6 +350,8 @@ def on_delButton_clicked():
if not changed:
name = f"{path}/i386/{localJsonList[ui.localWineList.currentIndex().row()]}".replace(".tar.gz", "")
print(name)
# 必须取消挂载目录才行
os.system(f"bash '{programPath}/UnMount.sh' '{name}'")
#name = f"{homePath}/.deepin-wine-runner-ubuntu-images/{localJsonList[ui.localWineList.currentIndex().row()]}"
dir = QtCore.QDir(name)
dir.removeRecursively()