Remove bat file when deleting a game

This commit is contained in:
Faugus
2026-01-03 21:11:50 -03:00
parent 69f56342e5
commit 6f613dde03

View File

@@ -2898,6 +2898,8 @@ class Main(Gtk.Window):
def remove_shortcut(self, game, shortcut):
applications_shortcut_path = f"{app_dir}/{game.gameid}.desktop"
desktop_shortcut_path = f"{desktop_dir}/{game.gameid}.desktop"
if os.path.exists(game.addapp_bat):
os.remove(game.addapp_bat)
if shortcut == "appmenu":
if os.path.exists(applications_shortcut_path):
os.remove(applications_shortcut_path)