-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parity: Port create and add from v9.4 to v 9.5 #711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly fine, except for two nits and two minor issues:
- 2 Strings aren't translated
- The search field doesn't get cleared after creating the tag (not sure this was implemented in 9.4.x but it would be more ergonomic)
@@ -197,6 +197,7 @@ | |||
"tag.color": "Color", | |||
"tag.confirm_delete": "Are you sure you want to delete the tag \"{tag_name}\"?", | |||
"tag.create": "Create Tag", | |||
"tag.create_quick": "Create && Add \"{query}\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -115,6 +115,7 @@ | |||
"tag.add_to_search": "Ajouter à la Recherche", | |||
"tag.aliases": "Alias", | |||
"tag.color": "Couleur", | |||
"tag.create_quick": "Créer && Adjouter \"{query}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for the nit
"tag.create_quick": "Créer && Adjouter \"{query}\"" | |
"tag.create_add": "Créer && Adjouter \"{query}\"" |
row.setSpacing(3) | ||
|
||
create_button = QPushButton(self) | ||
Translations.translate_qobject(create_button, "tag.create_quick", query=query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for the nit
Translations.translate_qobject(create_button, "tag.create_quick", query=query) | |
Translations.translate_qobject(create_button, "tag.create_add", query=query) |
|
||
self.build_tag_modal: bt.BuildTagPanel = bt.BuildTagPanel(self.lib) | ||
self.add_tag_modal: PanelModal = PanelModal( | ||
self.build_tag_modal, "New Tag", "Add Tag", has_save=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These strings should be translated
@@ -5,6 +5,7 @@ | |||
|
|||
import math | |||
|
|||
import src.qt.modals.build_tag as bt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: For readability's sake I wouldn't shorten this we all have IDEs with autocompletion after all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything I pointed out before seems to be fixed, however I found another small issue: Pressing return doesn't trigger "Create and Add", this patch fixes that for me:
return_fix.patch
I was unsure if this would be desired behaviour, thank you for implementing it for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this, and thank you @Computerdores for reviewing!
close #688
hope this is alright
(edit: to add images)

Clicking create opens the Add Tag modal