censor/Censor
1
37
Fork
You've already forked Censor
3

fix: prevent data loss for unsaved redactions #22

Merged
mahlzahn merged 1 commit from mahlzahn/fix_data_loss into main 2025年12月02日 23:36:26 +01:00 AGit

On close event or open event, if there are unsaved changes a close
dialog pops up which asks the user explicitly to close, cancel or save.

Additionally, this PR includes:

  • fix: add shortcut Ctrl+S for saving to shortcut
    window
  • fix: make save button insensitive if no redactions, yet
  • feat: adjust window title with automatic detection of document title
    and basename, and with prepended if there are unsaved redactions
  • feat!: after saving open redacted file (may need to revert this, as it
    prevents from editing or revert the redactions)
  • i18n: add more strings to be translated from shortcut window and
    close dialog
  • refactor: rename box to redaction, move class to own file
  • refactor: rename classes, simply Window, Application,
    CloseDialog
  • refactor: move more widgets to window template

Closes: #9

On close event or open event, if there are unsaved changes a close dialog pops up which asks the user explicitly to close, cancel or save. Additionally, this PR includes: - fix: add shortcut <kbd>Ctrl</kbd>+<kbd>S</kbd> for saving to shortcut window - fix: make save button insensitive if no redactions, yet - feat: adjust window title with automatic detection of document title and basename, and with prepended `• ` if there are unsaved redactions - feat!: after saving open redacted file (may need to revert this, as it prevents from editing or revert the redactions) - i18n: add more strings to be translated from shortcut window and close dialog - refactor: rename `box` to `redaction`, move class to own file - refactor: rename classes, simply `Window`, `Application`, `CloseDialog` - refactor: move more widgets to window template Closes: #9
fix: prevent data loss for unsaved redactions
All checks were successful
/ reuse (pull_request) Successful in 19s
2ea4f75748
On close event or open event, if there are unsaved changes a close
dialog pops up which asks the user explicitly to close, cancel or save.
Additionally, this PR includes:
- fix: add shortcut <kbd>Ctrl</kbd>+<kbd>S</kbd> for saving to shortcut
 window
- fix: make save button insensitive if no redactions, yet
- feat: adjust window title with automatic detection of document title
 and basename, and with prepended `• ` if there are unsaved redactions
- feat!: after saving open redacted file (may need to revert this, as it
 prevents from editing or revert the redactions)
- i18n: add more strings to be translated from shortcut window and
 close dialog
- refactor: rename `box` to `redaction`, move class to own file
- refactor: rename classes, simply `Window`, `Application`,
 `CloseDialog`
- refactor: move more widgets to window template
Closes: #9 
mahlzahn added this to the v0.2.0 milestone 2025年12月03日 20:44:21 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
censor/Censor!22
Reference in a new issue
censor/Censor
No description provided.
Delete branch "mahlzahn/fix_data_loss"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?