This commit is contained in:
Insality
2025-10-28 21:11:55 +02:00
parent 15c9bd5ff9
commit b7f34ca01d
4 changed files with 40 additions and 28 deletions

View File

@@ -8,6 +8,7 @@ local M = {}
local DEFAULT_WIDGET_TEMPLATE_PATH = "/druid/templates/widget_full.lua.template"
local DEFAULT_GUI_SCRIPT_TEMPLATE_PATH = "/druid/templates/druid.gui_script.template"
local DEFAULT_ASSET_INSTALL_FOLDER = "/widget"
---Define preferences schema
function M.get_prefs_schema()
@@ -21,7 +22,7 @@ function M.get_prefs_schema()
scope = editor.prefs.SCOPE.PROJECT
}),
["druid.asset_install_folder"] = editor.prefs.schema.string({
default = "/widget",
default = DEFAULT_ASSET_INSTALL_FOLDER,
scope = editor.prefs.SCOPE.PROJECT
})
}