Skip to content

Commit 048d340

Browse files
committed
fix: replace string concatenation with f-strings for black formatting
- Replace 'get_translation(...) + ":"' with f-strings - Black prefers f-strings over string concatenation - Fixes black formatting check failure
1 parent a85b516 commit 048d340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bookmark_checker/ui/main_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ def _update_ui_texts(self) -> None:
169169
lang = lang_codes[self.language_combo.currentIndex()]
170170

171171
self.setWindowTitle(get_translation(lang, "app_title", "BrowserBookmarkChecker"))
172-
self.lang_label.setText(get_translation(lang, "language", "Language") + ":")
172+
self.lang_label.setText(f"{get_translation(lang, 'language', 'Language')}:")
173173
self.btn_import.setText(get_translation(lang, "import_files", "Import Files"))
174174
self.btn_merge.setText(get_translation(lang, "find_merge", "Find & Merge"))
175175
self.btn_export.setText(get_translation(lang, "export_merged", "Export Merged"))
176-
self.similarity_label.setText(get_translation(lang, "similarity", "Similarity") + ":")
176+
self.similarity_label.setText(f"{get_translation(lang, 'similarity', 'Similarity')}:")
177177

178178
# Update table headers
179179
self.table.setHorizontalHeaderLabels(

0 commit comments

Comments
 (0)