2025.03.03 09:16:12 (desktop)

This commit is contained in:
Christian Moser 2025-03-03 09:16:12 +01:00
parent 2fe13e7da3
commit 12c3b4ddeb
Failed to extract signature
4 changed files with 10 additions and 15 deletions

View File

@ -364,7 +364,7 @@ class GameView(Gtk.Box):
steam = Steam() steam = Steam()
if steam.find_new_steamapps(): if steam.find_new_steamapps():
dialog = NewSteamAppsDialog(parent=self.get_root()) dialog = NewSteamAppsDialog(parent=self.get_root())
dialog.connect('response',self._on_new_steamapps_dialog_response) dialog.connect_after('response',self._on_new_steamapps_dialog_response)
dialog.present() dialog.present()
else: else:
dialog = NoNewSteamAppsDialog(parent=self.get_root()) dialog = NoNewSteamAppsDialog(parent=self.get_root())
@ -1401,7 +1401,7 @@ class Application(Gtk.Application):
steam = Steam() steam = Steam()
if steam.find_new_steamapps(): if steam.find_new_steamapps():
dialog = NewSteamAppsDialog(self.appwindow) dialog = NewSteamAppsDialog(self.appwindow)
dialog.connect('response',on_dialog_response) dialog.connect_after('response',on_dialog_response)
dialog.present() dialog.present()
else: else:
dialog = NoNewSteamAppsDialog(self.appwindow) dialog = NoNewSteamAppsDialog(self.appwindow)

View File

@ -22,7 +22,7 @@ from gi.repository.GObject import GObject,Property,Signal,BindingFlags
import os import os
from ..steam import Steam,SteamLibrary,SteamApp,IgnoreSteamApp,PLATFORM_LINUX,PLATFORM_MACOS,PLATFORM_WINDOWS from ..steam import Steam,SteamLibrary,SteamApp,IgnoreSteamApp,PLATFORM_LINUX,PLATFORM_MACOS,PLATFORM_WINDOWS
from ..game import GameManager,Game,SteamLinuxGame,SteamMacOSGame,SteamWindowsGame,SavegameType from ..game import GameManager,Game,SteamGameData,SteamLinuxData,SteamMacOSData,SteamWindowsData,SavegameType
from ._gamedialog import GameDialog from ._gamedialog import GameDialog
class SteamLibrariesDialog(Gtk.Dialog): class SteamLibrariesDialog(Gtk.Dialog):
@ -349,21 +349,16 @@ class NewSteamAppsDialog(Gtk.Dialog):
if item.appid == data.appid: if item.appid == data.appid:
self.__listmodel.remove(i) self.__listmodel.remove(i)
game = Game("Enter key",data.name,"") game = Game("",data.name,"")
game.steam = SteamGameData(appid=data.appid)
if PLATFORM_WINDOWS: if PLATFORM_WINDOWS:
game.steam_windows = SteamWindowsGame(data.appid,"","",installdir=data.installdir) game.steam.windows = SteamWindowsData("","",installdir=data.installdir)
game.steam_linux = SteamLinuxGame(data.appid,"","")
game.steam_macos = SteamMacOSGame(data.appid,"","")
game.savegame_type = SavegameType.STEAM_WINDOWS game.savegame_type = SavegameType.STEAM_WINDOWS
elif PLATFORM_LINUX: elif PLATFORM_LINUX:
game.steam_linux = SteamLinuxGame(data.appid,"","",installdir=data.installdir) game.steam.linux = SteamLinuxData("","",installdir=data.installdir)
game.steam_windows = SteamWindowsGame(data.appid,"","")
game.steam_macos = SteamMacOSGame(data.appid,"","")
game.savegame_type = SavegameType.STEAM_LINUX game.savegame_type = SavegameType.STEAM_LINUX
elif PLATFORM_MACOS: elif PLATFORM_MACOS:
game.steam_macos = SteamMacOSGame(data.appid,"","",installdir=data.installdir) game.steam.macos = SteamMacOSData("","",installdir=data.installdir)
game.steam_windows = SteamWindowsGame(data.appid,"","")
game.steam_macos = SteamMacOSGame(data.appid,"","")
game.savegame_type = SavegameType.STEAM_MACOS game.savegame_type = SavegameType.STEAM_MACOS
gamedialog = GameDialog(self,game) gamedialog = GameDialog(self,game)

View File

@ -3,7 +3,7 @@ keys=root
[handlers] [handlers]
keys=consoleHandler keys=consoleHandler
#keys=consoleHanlder,fileHandler #keys=consoleHandler,fileHandler
[formatters] [formatters]
keys=consoleFormatter,fileFormatter keys=consoleFormatter,fileFormatter

View File

@ -478,7 +478,7 @@ class Settings(GObject.GObject):
"XDG_DOWLNLOAD_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD), "XDG_DOWLNLOAD_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD),
"XDG_PICTURES_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_PICTURES), "XDG_PICTURES_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_PICTURES),
"XDG_MUSIC_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_MUSIC), "XDG_MUSIC_DIR": GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_MUSIC),
"XDG_DATA_DIR": GLib.get_user_data_dir(), "XDG_DATA_HOME": GLib.get_user_data_dir(),
}) })
ret.update(self.variables) ret.update(self.variables)
return ret return ret