- fixed some issues due of the above hack

This commit is contained in:
Marius Stanciu
2022-01-19 21:35:26 +02:00
committed by Marius
parent a26fd24f65
commit ba8b16e54f
3 changed files with 22 additions and 15 deletions

View File

@@ -6852,10 +6852,10 @@ class App(QtCore.QObject):
# first do the Plugin cleanup
# #########################################################################################################
for plugin in self.app_plugins:
# execute this only for the current active plugin
if self.ui.notebook.tabText(found_idx) != plugin.pluginName:
continue
try:
# execute this only for the current active plugin
if self.ui.notebook.tabText(found_idx) != plugin.pluginName:
continue
plugin.on_plugin_cleanup()
except AttributeError:
# not all plugins have this implemented
@@ -7825,14 +7825,17 @@ class App(QtCore.QObject):
tab_idx = self.ui.notebook.currentIndex()
for plugin in self.app_plugins:
# execute this only for the current active plugin
if self.ui.notebook.tabText(tab_idx) != plugin.pluginName:
continue
try:
plugin.on_plugin_mouse_click_release(pos)
# execute this only for the current active plugin
if self.ui.notebook.tabText(tab_idx) != plugin.pluginName:
continue
try:
plugin.on_plugin_mouse_click_release(pos)
except AttributeError:
# not all plugins have this implemented
# print("This does not have it", self.ui.notebook.tabText(tab_idx))
pass
except AttributeError:
# not all plugins have this implemented
# print("This does not have it", self.ui.notebook.tabText(tab_idx))
pass
def on_plugin_mouse_move(self, pos):
@@ -7850,13 +7853,16 @@ class App(QtCore.QObject):
tab_idx = self.ui.notebook.currentIndex()
for plugin in self.app_plugins:
# execute this only for the current active plugin
if self.ui.notebook.tabText(tab_idx) != plugin.pluginName:
continue
try:
plugin.on_plugin_mouse_move(pos)
if self.ui.notebook.tabText(tab_idx) != plugin.pluginName:
continue
try:
plugin.on_plugin_mouse_move(pos)
except AttributeError:
# not all plugins have this implemented
# print("This does not have it", self.ui.notebook.tabText(tab_idx))
pass
except AttributeError:
# not all plugins have this implemented
# print("This does not have it", self.ui.notebook.tabText(tab_idx))
pass
def delete_hover_shape(self):