refactor: extract constants, deduplicate defaults, improve config loading

- Define NUM_COMMANDS and DEFAULT_COMMANDS to eliminate repeated arrays
- Initialize commands to NULL and fall back to defaults on config read errors
- Skip empty lines and handle malformed entries gracefully in load_configuration
- Show a "Configuration saved." toast on successful settings save
- Fix window parent lookup via gtk_application_get_active_window
This commit is contained in:
2026-05-20 22:46:10 +02:00
parent c24db4dcbd
commit 13c06c274d
2 changed files with 50 additions and 41 deletions
+4
View File
@@ -1,3 +1,7 @@
ssdd
resources.c
resources.h
# ZaguanBlade local data
.zblade/
.pnpm-store/