Skip to content

Better preset selection - #1578

Merged
dxqb merged 2 commits into
Nerogar:mergefrom
dxqb:preset-model-type-dirs
Jul 4, 2026
Merged

Better preset selection#1578
dxqb merged 2 commits into
Nerogar:mergefrom
dxqb:preset-model-type-dirs

Conversation

@dxqb

@dxqb dxqb commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

better preset menu, and separate button for loading user configs

Test plan

  • pre-commit run --all-files passes
  • Launched the affected UI or script and exercised the change

AI assistance

  • AI-assisted — I have read every line in this diff and can defend each change

@dxqb
dxqb changed the base branch from master to merge July 4, 2026 08:02
…ser configs

training_presets/ had grown to ~50 flat files that were hard to scan in a
single dropdown. The top-bar "Load Preset" control now mirrors whatever
directory structure exists under training_presets/ as a cascading menu
(group -> preset), instead of hardcoding a flat list. Presets were regrouped
by model type as a first cut of that directory structure (Inpainting variants
folded into their base model's directory, "Flux 2 [Dev, Klein]" renamed to
"Flux 2").

Saving/loading a user's own config no longer writes into training_presets/;
"Save config" and a new "Load config" button use native file dialogs rooted
at a new training_configs/ directory instead. training_presets/.gitignore no
longer needs to filter out user configs, so it's reduced to just excluding
"#.json", the per-machine last-session-state file.

Config-loading (file I/O, migration, secrets-merging) lives in
TopBarController.load_config_from_file(), alongside the other business
logic there; the view only syncs UI state from the result.

Also replaces models/.gitkeep with models/.gitignore (same self-exempting
"*" / "!.gitignore" convention), dropping the now-stale root .gitignore
exception for the deleted .gitkeep file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dxqb
dxqb force-pushed the preset-model-type-dirs branch from 625b07e to 8966055 Compare July 4, 2026 08:04
Rebuilding the tk.Menu on every open leaked a Menu widget per click;
build it once at construction, matching the PySide6 preset_menu_button.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dxqb
dxqb merged commit d4dc082 into Nerogar:merge Jul 4, 2026
1 check passed
@dxqb
dxqb deleted the preset-model-type-dirs branch July 4, 2026 08:11
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