mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 20:58:00 -06:00
committed by
bflatastic
parent
6ee357a6d4
commit
b11b41d5f3
@@ -230,7 +230,7 @@ fn reload(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
None => s.prefs.plugins_folder.trim().to_string(),
|
||||
};
|
||||
if folder.is_empty() {
|
||||
return Err(bad(C, "no folder: pass `path` or set Preferences › Storage › Additional Plug-ins Folder"));
|
||||
return Err(bad(C, "no folder: pass `path` or set Preferences › Plug-ins & Scratch Disks › Additional Plug-ins Folder"));
|
||||
}
|
||||
let report = load_folder(&folder);
|
||||
if let Some(e) = report.get("error").and_then(Value::as_str) {
|
||||
|
||||
@@ -49,7 +49,7 @@ pub struct PrefSpec {
|
||||
pub kind: PrefKind,
|
||||
}
|
||||
|
||||
/// Categories in Illustrator's order (Plug-ins & Scratch Disks is "Storage" here).
|
||||
/// Categories in Illustrator's order.
|
||||
pub const PREF_CATEGORIES: &[&str] = &[
|
||||
"General",
|
||||
"Selection & Anchor Display",
|
||||
@@ -59,7 +59,7 @@ pub const PREF_CATEGORIES: &[&str] = &[
|
||||
"Smart Guides",
|
||||
"Slices",
|
||||
"Hyphenation",
|
||||
"Storage",
|
||||
"Plug-ins & Scratch Disks",
|
||||
"User Interface",
|
||||
"Performance",
|
||||
"File Handling",
|
||||
@@ -256,10 +256,10 @@ pub const PREF_SPECS: &[PrefSpec] = &[
|
||||
])
|
||||
),
|
||||
p!("hyphenationExceptions", "Hyphenation", "", "Exceptions (comma separated)", text),
|
||||
// Storage
|
||||
p!("pluginsFolder", "Storage", "Plug-ins", "Additional Plug-ins Folder", text),
|
||||
p!("scratchPrimary", "Storage", "Scratch Disks", "Primary", text),
|
||||
p!("scratchSecondary", "Storage", "Scratch Disks", "Secondary", text),
|
||||
// Plug-ins & Scratch Disks
|
||||
p!("pluginsFolder", "Plug-ins & Scratch Disks", "Plug-ins", "Additional Plug-ins Folder", text),
|
||||
p!("scratchPrimary", "Plug-ins & Scratch Disks", "Scratch Disks", "Primary", text),
|
||||
p!("scratchSecondary", "Plug-ins & Scratch Disks", "Scratch Disks", "Secondary", text),
|
||||
// User Interface
|
||||
p!(
|
||||
"uiBrightness",
|
||||
|
||||
Reference in New Issue
Block a user