-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix minor issues in the app #12102
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
Fix minor issues in the app #12102
Conversation
4fb47de to
88a9793
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #12102 +/- ##
===========================================
+ Coverage 63.89% 64.24% +0.35%
===========================================
Files 369 375 +6
Lines 38943 39292 +349
===========================================
+ Hits 24882 25241 +359
+ Misses 14061 14051 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
88a9793 to
76ffae8
Compare
|
Maybe the copy button should be disabled also if the TOTP is not valid? After all it's just copying the "Invalid Key" value to clipboard. |
85ed131 to
a9d4cd5
Compare
varjolintu
left a comment
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.
Now when the Copy button is disabled in the dialog, it would make sense also disable the Copy TOTP and Copy Password and TOTP menu items when TOTP is invalid. Not mandatory though.
|
And show qr-code can also be disabled |
|
The buttons are only testing if totp is configured... that would be a bigger change to the code logic deep in the totp settings. I will consider this. |
a9d4cd5 to
97fad5b
Compare
97fad5b to
0038efb
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
7aa4402 to
818352b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
* Fixes #11662 - disable the save button when viewing Password Generator and Application Settings to restore previous behavior of toolbar
* Fixes #11856 * Set the minimum recommended wordlist size to 1,296 - equal to the EFF Short List * Issue a clear warning when using a smaller wordlist but do not prevent generation of passphrases * Improve wording when removing custom wordlist
* Fixes #11357 * Introduces validity parameter to TOTP generator function for future use elsewhere in the code base * Fixes this in preview panel and TOTP dialog * Disable actions to copy/show TOTP if the settings are invalid * Show an error message on the TOTP setup dialog if the settings are invalid * Show a TOTP icon with an x if the settings are invalid
* Keeps readability of translation strings without losing line breaks due to forced rich text display
72cdbc2 to
dd0574c
Compare
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.
Pull Request Overview
This PR addresses several minor UI, functionality, and data-handling issues across the application:
- Hides or disables UI elements when no tags or invalid TOTP settings are present and restores toolbar save button behavior
- Refactors the TOTP API to include a validity flag with corresponding codepaths in entries, database, autotype, and browser services
- Updates passphrase generator’s minimum wordlist size, renames validation methods, and surfaces warnings without blocking generation
- Cleans up start menu shortcuts on uninstall and sorts tags using a collator
Reviewed Changes
Copilot reviewed 20 out of 35 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/gui/EntryPreviewWidget.ui | Wrapped TOTP label/progress in a zero-margin QWidget container |
| src/gui/EntryPreviewWidget.cpp | Connected toggle to container visibility; unified show/hide logic |
| src/gui/EditWidget.cpp | Expanded pageIndex to consider the scroll area itself |
| src/gui/DatabaseWidget.cpp | Switched from hasTotp() to hasValidTotp() for clipboards |
| src/fdosecrets/objects/Item.cpp | Updated TOTP check to hasValidTotp() |
| src/core/Totp.h & src/core/Totp.cpp | Added checkValidSettings(), extended generateTotp() with flag |
| src/core/PassphraseGenerator.h & .cpp | Renamed isValid() to isWordListValid(), adjusted min size |
| src/core/Entry.h & src/core/Entry.cpp | Modified totp() signature and introduced hasValidTotp() |
| src/core/Database.cpp | Replaced m_tagList.sort() with std::sort() + QCollator |
| src/cli/Diceware.cpp | Downgraded wordlist-too-small error to a warning |
| src/browser/BrowserService.cpp | Guarded JSON TOTP inclusion with hasValidTotp() |
| src/autotype/AutoTypeSelectDialog.cpp | Switched to hasValidTotp() for action menu updates |
| src/autotype/AutoType.cpp | Added explicit invalid-TOTP error path in sequence parsing |
| share/windows/wix-template.xml | Added <RemoveFile> to clear start menu shortcuts on uninstall |
| share/translations/keepassxc_en.ts | Added new translations; removed obsolete entries |
| share/icons/icons.qrc & COPYING | Added totp-invalid.svg and updated license manifest |
Comments suppressed due to low confidence (4)
share/translations/keepassxc_en.ts:727
- Missing translation entry for the "Invalid Settings" error returned by
Totp::checkValidSettings(). Add a<message>block for this source string under the appropriate context.
<message>
share/translations/keepassxc_en.ts:727
- Missing translation entry for the "Invalid Key" error returned by
Totp::checkValidSettings(). Add a<message>block for this source string under the TOTP context.
<message>
src/core/PassphraseGenerator.h:53
- [nitpick] Member variable
m_minWordListSizedeviates from the repository’s snake_case convention (e.g.,m_minimum_wordlist_length). Consider renaming tom_minimum_word_list_sizefor consistency.
int m_minWordListSize = 1296;
src/core/PassphraseGenerator.cpp:120
- The original check for
m_wordCount > 0was removed. Without validatingm_wordCount, you may generate zero-word passphrases. Reintroduce a check onm_wordCountor ensure it’s always positive.
if (m_wordlist.isEmpty()) {
|
@droidmonkey, I checked and it still hasn't been fixed. Or don't you see what the problem is? |
|
What hasn't been fixed? I could not replicate your gif |
|
@droidmonkey, I outlined the steps to reproduce the issue, but you marked the message as outdated. I thought a GIF would be more helpful.
|
|
Ah, I figured it out, fix inbound |
Release 2.7.11 (2025-11-23) - Add image, HTML, Markdown preview, and text editing support to inline attachment viewer [keepassxreboot#12085, keepassxreboot#12244, keepassxreboot#12654] - Add database merge confirmation dialog [keepassxreboot#10173] - Add option to auto-generate a password for new entries [keepassxreboot#12593] - Add support for group sync in KeeShare [keepassxreboot#11593] - Add {UUID} placeholder for use in references [keepassxreboot#12511] - Add “Wait for Enter” search option [keepassxreboot#12263] - Add keyboard shortcut to “Jump to Group” from search results [keepassxreboot#12225] - Add predefined search for TOTP entries [keepassxreboot#12199] - Add confirmation when closing database via ESC key [keepassxreboot#11963] - Add support for escaping placeholder expressions [keepassxreboot#11904] - Reduce tab indentation width in notes fields [keepassxreboot#11919] - Cap default Argon2 parallelism when creating a new database [keepassxreboot#11853] - Database lock after inactivity now enabled by default and set to 900 seconds [keepassxreboot#12689, keepassxreboot#12609] - Copying TOTP now opens setup dialog if none is configured for entry [keepassxreboot#12584] - Make double click action configurable [keepassxreboot#12322] - Remove unused “Last Accessed” from GUI [keepassxreboot#12602] - Auto-Type: Add more granular confirmation settings [keepassxreboot#12370] - Auto-Type: Add URL typing preset and add copy options to menu [keepassxreboot#12341] - Browser: Do not allow sites automatically if entry added from browser extension [keepassxreboot#12413] - Browser: Add options to restrict exposed groups [keepassxreboot#9852, keepassxreboot#12119] - Bitwarden Import: Add support for timestamps and password history [keepassxreboot#12588] - macOS: Add Liquid Glass icon [keepassxreboot#12642] - macOS: Remove theme-based menubar icon toggle [keepassxreboot#12685] - macOS: Add Window and Help menus [keepassxreboot#12357] - Windows: Add option to add KeePassXC to PATH during installation [keepassxreboot#12171] - Fix window geometry not being restored properly when KeePassXC starts in tray [keepassxreboot#12683] - Fix potential database truncation when using direct write save method with YubiKeys [keepassxreboot#11841] - Fix issue with database backup saving [keepassxreboot#11874] - Fix UI lockups during startup with multiple tabs [keepassxreboot#12053] - Fix keyboard shortcuts when menubar is hidden [keepassxreboot#12431] - Fix clipboard being cleared on exit even if no password was copied [keepassxreboot#12603] - Fix single-instance detection when username contains invalid filename characters [keepassxreboot#12559] - Fix “Search Wait for Enter” setting not being save [keepassxreboot#12614] - Fix hotkey accelerators not being escaped properly on database tabs [keepassxreboot#12630] - Fix confusing error if user cancels out of key file edit dialog [keepassxreboot#12639] - Fix issues with saved searches and “Press Enter to Search” option [keepassxreboot#12314] - Fix URL wildcard matching [keepassxreboot#12257] - Fix TOTP visibility on unlock and settings change [keepassxreboot#12220] - Fix KeeShare entries with reference attributes not updating [keepassxreboot#11809] - Fix sort order not being maintained when toggling filters in database reports [keepassxreboot#11849] - Fix several UI font and layout issues [keepassxreboot#11967, keepassxreboot#12102] - Prevent mouse wheel scroll on edit username field [keepassxreboot#12398] - Improve base translation consistency [keepassxreboot#12432] - Improve inactivity timer [keepassxreboot#12246] - Documentation improvements [keepassxreboot#12373, keepassxreboot#12506] - Browser: Fix ordering of clientDataJSON in Passkey response object [keepassxreboot#12120] - Browser: Fix URL matching for additional URLs [keepassxreboot#12196] - Browser: Fix group settings inheritance [keepassxreboot#12368] - Browser: Allow read-only native messaging config files [keepassxreboot#12236] - Browser: Optimise entry iteration in browser access control dialog [keepassxreboot#11817] - Browser: Fix “Do not ask permission for HTTP Basic Auth” option [keepassxreboot#11871] - Browser: Fix native messaging path for Tor Browser launcher on Linux [keepassxreboot#12005] - Auto-Type: Fix empty window behaviour [keepassxreboot#12622] - Auto-Type: Take delays into account when typing TOTP [keepassxreboot#12691] - SSH Agent: Fix out-of-memory crash with malformed SSH keys [keepassxreboot#12606] - CSV Import: Fix modified and creation time import [keepassxreboot#12379] - CSV Import: Fix duplication of root groups on import [keepassxreboot#12240] - Proton Pass Import: Fix email addresses not being imported when no username set [keepassxreboot#11888] - macOS: Fix secure input getting stuck [keepassxreboot#11928] - Windows: Prevent launch as SYSTEM user from MSI installer [keepassxreboot#12705] - Windows: Remove broken check for MSVC Redistributable from MSI installer [keepassxreboot#11950] - Linux: Fix startup delay due to StartupNotify setting in desktop file [keepassxreboot#12306] - Linux: Fix memory initialisation when --pw-stdin is used with a pipe [keepassxreboot#12050]




Fixes Do not show the tearing off tags menu when there are no tags and other bugs #11808
Fixes Buttons in the new toolbar are not disabled #11662 - disable the save button when viewing Password Generator and Application Settings to restore previous behavior of toolbar
Fixes UI: Adding new entry doesn't always start with "Entry" tab #11891
Fixes Preview panel adds extra space to translate “invalid key” #11357
Fixes Passphrase custom wordlist cannot be less than 4000 words #11856
Remove start menu shortcuts on uninstall
Fixes Icon downloader popup appears behind main application #12070
Fixes Tags sorted incorrectly in context menu #12153 - tags becoming unsorted in the context menu when switching between database tabs
Testing strategy
Tested on Windows
Type of change