- refactored the code for the file registration and for the keywords update into its own class to make the main class smaller
- when creating new files the file names are added to the beginning of the keywords list for the usage of Qt auto-completer
This commit is contained in:
@@ -336,11 +336,6 @@ class AppObject(QtCore.QObject):
|
||||
except Exception as e:
|
||||
self.app.log.error("AppObject.new_object() -> setting colors error. %s" % str(e))
|
||||
|
||||
# #############################################################################################################
|
||||
# update the SHELL auto-completer model with the name of the new object
|
||||
# #############################################################################################################
|
||||
self.app.shell.command_line().set_model_data(self.app.myKeywords)
|
||||
|
||||
if auto_select or self.app.ui.notebook.currentWidget() is self.app.ui.properties_tab:
|
||||
# select the just opened object but deselect the previous ones
|
||||
self.app.collection.set_all_inactive()
|
||||
|
||||
Reference in New Issue
Block a user