def loadSettings(self): # Don't set the autodetected location, since the user might want to allow that to vary according # to WM_PROJECT_DIR setting prefs = CfdTools.getPreferencesLocation() self.foam_dir = FreeCAD.ParamGet(prefs).GetString("InstallationPath", "") self.initial_foam_dir = str(self.foam_dir) self.form.le_foam_dir.setText(self.foam_dir) self.output_dir = CfdTools.getDefaultOutputPath() self.form.le_output_dir.setText(self.output_dir)
def loadSettings(self): # Don't set the autodetected location, since the user might want to allow that to vary according # to WM_PROJECT_DIR setting prefs = CfdTools.getPreferencesLocation() self.foam_dir = FreeCAD.ParamGet(prefs).GetString("InstallationPath", "") self.initial_foam_dir = str(self.foam_dir) self.form.le_foam_dir.setText(self.foam_dir) self.output_dir = CfdTools.getDefaultOutputPath() self.form.le_output_dir.setText(self.output_dir) CfdTools.DockerContainer.usedocker = FreeCAD.ParamGet(prefs).GetBool("UseDocker", 0) if CfdTools.DockerContainer.usedocker: self.form.cb_docker_sel.setCheckState(Qt.Checked) else: self.form.pb_download_install_docker.setEnabled(0) if platform.system() == "Linux": self.form.le_docker_url.setText(DOCKER_URL+"linux") elif platform.system() == "Darwin": self.form.le_docker_url.setText(DOCKER_URL+"macos")