- in 2Sided Plugin, deleting the last drill alignment coordinates will update the clipboard values too

This commit is contained in:
Marius Stanciu
2021-10-04 17:59:10 +03:00
parent 411f410025
commit ab704e2a60
3 changed files with 29 additions and 11 deletions

View File

@@ -7723,17 +7723,20 @@ class App(QtCore.QObject):
:return:
"""
if self.ui.notebook.currentWidget().objectName() == "plugin_tab":
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:
try:
plugin.on_mouse_plugin_click_release()
except AttributeError:
# not all plugins have this implemented
# print("This does not have it", self.ui.notebook.tabText(tab_idx))
pass
if self.ui.notebook.currentWidget().objectName() != "plugin_tab":
return
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_mouse_plugin_click_release()
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):
self.hover_shapes.clear()