Skip to content

Fix history window to pass settings for encrypted history decryption#7

Merged
offbyonebit merged 1 commit intomainfrom
fix/history-encryption-passphrase
May 6, 2026
Merged

Fix history window to pass settings for encrypted history decryption#7
offbyonebit merged 1 commit intomainfrom
fix/history-encryption-passphrase

Conversation

@offbyonebit
Copy link
Copy Markdown
Owner

The HistoryWindow was creating ClipboardHistory() instances without passing the settings parameter, which meant it couldn't access the encryption passphrase. This caused the history window to show empty even though entries were being saved correctly.

Changes:

  • Add app parameter to HistoryWindow.init()
  • Pass self._app.settings to ClipboardHistory() constructor
  • Update call site to pass app parameter

Fixes issue where history window showed 'No clipboard history yet' despite history being enabled and entries existing in the encrypted history file.

The HistoryWindow was creating ClipboardHistory() instances without
passing the settings parameter, which meant it couldn't access the
encryption passphrase. This caused the history window to show empty
even though entries were being saved correctly.

Changes:
- Add app parameter to HistoryWindow.__init__()
- Pass self._app.settings to ClipboardHistory() constructor
- Update call site to pass app parameter

Fixes issue where history window showed 'No clipboard history yet'
despite history being enabled and entries existing in the encrypted
history file.
@offbyonebit offbyonebit merged commit 22622f5 into main May 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant