Use legendary's installation directory inference
This commit is contained in:
parent
c3bdffcd50
commit
db588ed4e2
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue