- if an object is edited but the result is not saved, the app will reload the edited object UI and set the Selected tab as active

This commit is contained in:
Marius Stanciu
2019-09-27 15:28:47 +03:00
parent ca7863a371
commit 7b9907fa1d
2 changed files with 4 additions and 4 deletions

View File

@@ -2675,7 +2675,6 @@ class App(QtCore.QObject):
args_to_process = App.args
log.debug("Application was started with arguments: %s. Processing ..." % str(args_to_process))
for argument in args_to_process:
if '.FlatPrj'.lower() in argument.lower():
try:
@@ -2750,7 +2749,6 @@ class App(QtCore.QObject):
proc_ext = ext.replace(' ', '')
proc_ext = '.%s' % proc_ext
if proc_ext.lower() in proc_arg and proc_ext != '.':
print(proc_ext, proc_arg)
file_name = str(argument)
if file_name == "":
if silent is False:
@@ -3239,11 +3237,12 @@ class App(QtCore.QObject):
elif isinstance(edited_obj, FlatCAMExcellon):
self.exc_editor.deactivate()
# set focus on the project tab
self.ui.notebook.setCurrentWidget(self.ui.project_tab)
else:
self.inform.emit('[WARNING_NOTCL] %s' %
_("Select a Gerber, Geometry or Excellon Object to update."))
return
edited_obj.set_ui(edited_obj.ui_type())
self.ui.notebook.setCurrentWidget(self.ui.selected_tab)
elif response == bt_cancel:
return
else: