mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 10:46:12 -04:00
In create mode, the init block pre-filled _currentState with a default name but left _initialState empty. The hasUnsavedChanges() check saw the non-blank name as a change, triggering the dialog on back press even without user edits. Set _initialState to match _currentState defaults in create mode and unify the comparison logic to always use current != initial.