def __init__(self, user_data_dir: Path): super().__init__() NetworkClient.__init__(self, user_data_dir.joinpath("network_client"), randovania.get_configuration()) from randovania.gui.lib import common_qt_lib common_qt_lib.set_default_window_icon(self) if self.configuration.get("discord_client_id") is not None: self.discord = pypresence.AioClient(self.configuration["discord_client_id"]) self.discord._events_on = False # workaround for broken AioClient else: self.discord = None
def __init__(self, user_data_dir: Path): super().__init__() NetworkClient.__init__(self, user_data_dir.joinpath("network_client"), randovania.get_configuration()) from randovania.gui.lib import common_qt_lib common_qt_lib.set_default_window_icon(self)