- made a hack so if the Image Import plugin can't be loaded due of dependencies errors the app will not crash but this plugin will no longer be available

This commit is contained in:
Marius Stanciu
2022-01-19 18:05:13 +02:00
parent 8d06b5bf81
commit a26fd24f65
4 changed files with 14 additions and 10 deletions

View File

@@ -1998,10 +1998,13 @@ class App(QtCore.QObject):
pos=self.ui.menufileimport,
separator=True)
self.image_tool = ToolImage(self)
self.image_tool.install(icon=QtGui.QIcon(self.resource_location + '/image32.png'),
pos=self.ui.menufileimport,
separator=True)
try:
self.image_tool = ToolImage(self)
self.image_tool.install(icon=QtGui.QIcon(self.resource_location + '/image32.png'),
pos=self.ui.menufileimport,
separator=True)
except Exception:
self.image_tool = lambda x: None
self.pcb_wizard_tool = PcbWizard(self)
self.pcb_wizard_tool.install(icon=QtGui.QIcon(self.resource_location + '/drill32.png'),