File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ def __init__(self) -> None:
43
43
self .actions : list [QAction ] = []
44
44
self .menu = Plugin .name
45
45
46
+ self .toolbar = iface .addToolBar ("ARHO Toolbar" )
47
+
46
48
def add_action (
47
49
self ,
48
50
icon_path : str ,
@@ -114,7 +116,7 @@ def add_action(
114
116
action .setCheckable (True )
115
117
116
118
if add_to_toolbar :
117
- iface . addToolBarIcon (action )
119
+ self . toolbar . addAction (action )
118
120
119
121
if add_to_menu :
120
122
iface .addPluginToMenu (self .menu , action )
@@ -214,6 +216,7 @@ def unload(self) -> None:
214
216
for action in self .actions :
215
217
iface .removePluginMenu (Plugin .name , action )
216
218
iface .removeToolBarIcon (action )
219
+ iface .mainWindow ().removeToolBar (self .toolbar )
217
220
teardown_logger (Plugin .name )
218
221
219
222
self .templater .template_dock .close ()
You can’t perform that action at this time.
0 commit comments