mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 15:19:10 +00:00
fix: editing tags from preview panel updates database (#641)
* fix: bug where preview_panel tag was out of date compared to tag in database after edits where made using the tagDatabasePanel * fix: changes made in the preview panel are saved to the database
This commit is contained in:
@@ -656,7 +656,11 @@ class QtDriver(DriverMixin, QObject):
|
||||
|
||||
def show_tag_database(self):
|
||||
self.modal = PanelModal(
|
||||
TagDatabasePanel(self.lib), "Library Tags", "Library Tags", has_save=False
|
||||
widget=TagDatabasePanel(self.lib),
|
||||
title="Library Tags",
|
||||
window_title="Library Tags",
|
||||
done_callback=self.preview_panel.update_widgets,
|
||||
has_save=False,
|
||||
)
|
||||
self.modal.show()
|
||||
|
||||
|
||||
@@ -139,7 +139,9 @@ class TagBoxWidget(FieldWidget):
|
||||
self.edit_modal.saved.connect(
|
||||
lambda: self.driver.lib.update_tag(
|
||||
build_tag_panel.build_tag(),
|
||||
subtag_ids=build_tag_panel.subtag_ids,
|
||||
subtag_ids=set(build_tag_panel.subtag_ids),
|
||||
alias_names=set(build_tag_panel.alias_names),
|
||||
alias_ids=set(build_tag_panel.alias_ids),
|
||||
)
|
||||
)
|
||||
self.edit_modal.show()
|
||||
|
||||
Reference in New Issue
Block a user