1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Import Login

This commit is contained in:
Dummerle 2021-03-14 18:20:05 +01:00
parent 35bbfe5648
commit e67e1b826c

View file

@ -7,6 +7,8 @@ from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton, QLabel, QButtonGr
from legendary.core import LegendaryCore
logger = getLogger("Import")
class ImportWidget(QWidget):
success = pyqtSignal(str)
@ -77,7 +79,8 @@ class ImportWidget(QWidget):
self.import_button.setText(self.tr("Loading..."))
self.import_button.setDisabled(True)
if os.name != "nt":
self.core.egl.appdata_path = os.path.join(self.data_path, f"drive_c/users/{getuser()}/Local Settings/Application Data/EpicGamesLauncher/Saved/Config/Windows")
self.core.egl.appdata_path = os.path.join(self.data_path,
f"drive_c/users/{getuser()}/Local Settings/Application Data/EpicGamesLauncher/Saved/Config/Windows")
print(self.core.egl.appdata_path)
print(os.path.exists(self.core.egl.appdata_path))
if self.core.auth_import():
@ -88,4 +91,4 @@ class ImportWidget(QWidget):
logger.warning("Error: No valid session found")
self.login_text.setText(self.tr("Error: No valid session found"))
self.import_button.setText(self.tr("Import"))
self.import_button.setDisabled(False)
self.import_button.setDisabled(False)