Import Login
This commit is contained in:
parent
35bbfe5648
commit
e67e1b826c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue