diff --git a/src/plugins/lua/bindings/settings.cpp b/src/plugins/lua/bindings/settings.cpp index d0234def048..9097987840d 100644 --- a/src/plugins/lua/bindings/settings.cpp +++ b/src/plugins/lua/bindings/settings.cpp @@ -299,6 +299,11 @@ void addSettingsModule() auto filePathAspectType = addTypedAspect(settings, "FilePathAspect"); filePathAspectType.set("expandedValue", sol::property(&FilePathAspect::expandedValue)); + filePathAspectType.set( + "defaultPath", + sol::property( + [](FilePathAspect &self) { return FilePath::fromUserInput(self.defaultValue()); }, + &FilePathAspect::setDefaultPathValue)); addTypedAspect(settings, "IntegerAspect"); addTypedAspect(settings, "DoubleAspect"); diff --git a/src/plugins/lua/meta/settings.lua b/src/plugins/lua/meta/settings.lua index cd06bdc9032..2c947f42502 100644 --- a/src/plugins/lua/meta/settings.lua +++ b/src/plugins/lua/meta/settings.lua @@ -137,6 +137,7 @@ FilePathAspectCreate = {} ---@class FilePathAspect ---@field expandedValue FilePath The expanded value of the aspect +---@field defaultPath FilePath The default path of the aspect settings.FilePathAspect = {} ---Create a new FilePathAspect