Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo 2e19dbaa9e appkit: crate docs name save_panel without an intra-doc link
The module exists only on macOS, so the link did not resolve when the
workspace docs build on Linux with -D warnings.
2026-11-25 14:48:58 -08:00
dotCooCoo 48bdc408eb dialogs: macOS Save sheets list the file types in a Format menu
A Save on macOS that offers two or more file types showed rfd's panel,
which allows every type's extension but has no menu to pick one, and
answered without a picked type. A document saved from such a panel kept
the suggested extension unless the user typed another one.

- macos.rs: such a Save is a sheet made with a Format menu (the panel's
  accessory view, set before the sheet begins). The menu lists each type
  by name with the suggested name's type chosen. Choosing a type puts its
  extensions first in the allowed types and changes the extension in the
  name field. The answer is `Saved` with the chosen type in `filter`, so
  the save flow's picked-type rules apply as they do for the portal.
- format_menu.rs: the rules, tested on every platform: which types the
  menu lists, distinct item titles, the renamed name, the allowed
  extensions, and the type an answer reports (an extension the user typed
  for another listed type wins; a name the panel kept with the suggested
  extension keeps the chosen type).
- craft-appkit: `save_panel::new_save_panel` (nil from AppKit is `None`)
  and `save_panel::on_choose` (a pop-up menu's action as a closure).
- `FileDialog::format_label` and `FilePanels::set_format_label` set the
  menu's label in the app's language ("Format:" when unset).
2026-11-25 11:38:59 -08:00
bflatastic 6491d45d61 menus-w1: net change of 1 commits
- menus-w1: written by an agent
2026-11-21 21:26:02 +07:00
bflatastic 5e06e0cace Contract stubs: refresh (i18n, keymap, behavior, font-catalog, platform, window, appkit, wayland, automation, dialogs, ui-contract, ui-widgets, ui-panels, ui-canvas, ui-patterns, color-ui, draw, pages, print, font-manager, text, layers, craft) 2026-11-21 19:03:27 +07:00