@@ -73,9 +73,9 @@ def __init__(self, library: Library, driver: "QtDriver"):
73
73
self .file_attrs = FileAttributes (library , driver )
74
74
self .fields = FieldContainers (library , driver )
75
75
76
- tag_search_panel = TagSearchPanel (self .driver .lib )
76
+ self . tag_search_panel = TagSearchPanel (self .driver .lib )
77
77
self .add_tag_modal = PanelModal (
78
- tag_search_panel , Translations .translate_formatted ("tag.add.plural" )
78
+ self . tag_search_panel , Translations .translate_formatted ("tag.add.plural" )
79
79
)
80
80
Translations .translate_with_setter (self .add_tag_modal .setWindowTitle , "tag.add.plural" )
81
81
@@ -195,10 +195,10 @@ def update_add_field_button(self, entry_id: int | None = None):
195
195
196
196
def update_add_tag_button (self , entry_id : int = None ):
197
197
with catch_warnings (record = True ):
198
- self .add_tag_modal . widget .tag_chosen .disconnect ()
198
+ self .tag_search_panel .tag_chosen .disconnect ()
199
199
self .add_tag_button .clicked .disconnect ()
200
200
201
- self .add_tag_modal . widget .tag_chosen .connect (
201
+ self .tag_search_panel .tag_chosen .connect (
202
202
lambda t : (
203
203
self .fields .add_tags_to_selected (t ),
204
204
(self .fields .update_from_entry (entry_id ) if entry_id else ()),
@@ -207,7 +207,7 @@ def update_add_tag_button(self, entry_id: int = None):
207
207
208
208
self .add_tag_button .clicked .connect (
209
209
lambda : (
210
- self .add_tag_modal . widget .update_tags (),
210
+ self .tag_search_panel .update_tags (),
211
211
self .add_tag_modal .show (),
212
212
)
213
213
)
0 commit comments