mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
ui: the Image Assets menu item needs Generator enabled
This commit is contained in:
1 parent
be01d7ee0e
commit
f415b75222
1 file changed
+4
@@ -1420,6 +1420,10 @@ mod tests {
|
||||
assert_eq!(checked(&app, "view.lockSlices"), Some(false));
|
||||
crate::menus::invoke(&mut app, &ctx, "view.lockSlices", json!({})).unwrap();
|
||||
assert_eq!(checked(&app, "view.lockSlices"), Some(true));
|
||||
// Generator is opt-in (Preferences ▸ Plug-ins), as in Photoshop: the menu item is
|
||||
// unavailable until it is enabled.
|
||||
assert!(crate::menus::invoke(&mut app, &ctx, "file.generate.imageAssets", json!({})).is_err());
|
||||
app.run("prefs.set", json!({"path": "plugIns.generatorEnabled", "value": true})).unwrap();
|
||||
crate::menus::invoke(&mut app, &ctx, "file.generate.imageAssets", json!({})).unwrap();
|
||||
assert_eq!(checked(&app, "file.generate.imageAssets"), Some(true));
|
||||
// Form dialogs open for the rest.
|
||||
|
||||
Reference in new issue
Block a user