- some fixes in remembering the last save location and last open location

This commit is contained in:
Marius Stanciu
2022-02-22 15:16:03 +02:00
committed by Marius
parent 0d62c291ea
commit 1df2570668
9 changed files with 29 additions and 28 deletions

View File

@@ -5577,7 +5577,7 @@ class AppGerberEditor(QtCore.QObject):
for elem in self.storage_dict[storage]['geometry']:
if 'solid' in elem.geo:
geometric_data = elem.geo['solid']
if geometric_data is None:
if geometric_data is None or geometric_data.is_empty:
continue
if elem in self.selected:

View File

@@ -253,7 +253,7 @@ class AppTextEditor(QtWidgets.QWidget):
try:
filename = str(FCFileSaveDialog.get_saved_filename(
caption=_("Export Code ..."),
directory=self.app.options["global_last_folder"] + '/' + str(obj_name),
directory=self.app.defaults["global_last_folder"] + '/' + str(obj_name),
ext_filter=_filter_
)[0])
except TypeError: