mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-19 14:01:02 +01:00
Delete edited the package behind the Save, Discard, Cancel prompt, and floating OS windows stayed live behind every dialog, because no single function said whether input was blocked. Modality::capture answers it from the app's dialogs, the unsaved prompt, native file dialogs, the update prompt and result window, and egui's modal layer. Shortcuts, Graph, Function and FX-Map keys, the node search and add menus, file drops, floating OS windows, Home's actions and menu items all read it. Home and the Shortcuts list do not block. Behind a file dialog, the commands that show one still run, so File > Open brings a hidden macOS Open panel forward. ui.menu.invoke now returns an error behind a dialog instead of ok, ui.menu.list reports those items as disabled, and package_save without a path in bridge mode returns the same error. command.run is unchanged. Floating panels drawn inside the main window, as on the web build, still take clicks behind a dialog until the dialogs use egui's modal layer.