1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

Use legendary's installation directory inference

This commit is contained in:
loathingKernel 2023-12-16 00:40:15 +02:00
parent c3bdffcd50
commit db588ed4e2
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 2 additions and 4 deletions

View file

@ -213,9 +213,7 @@ class EOSGroup(QGroupBox, Ui_EosWidget):
self.enabled_cb.setChecked(enabled)
def install_overlay(self, update=False):
base_path = os.path.join(
self.core.lgd.config.get("Legendary", "install_dir", fallback=os.path.expanduser("~/legendary")),".overlay"
)
base_path = os.path.join(self.core.get_default_install_dir(), ".overlay")
if update:
if not self.overlay:
self.overlay_stack.setCurrentIndex(1)

View file

@ -198,7 +198,7 @@ class ImportGroup(QGroupBox):
self.__install_dirs: Set[str] = set()
self.path_edit = PathEdit(
self.core.get_default_install_dir(),
self.core.get_default_install_dir(self.core.default_platform),
QFileDialog.DirectoryOnly,
edit_func=self.path_edit_callback,
parent=self,