Fix path source for custom pages dir (#297)

This commit is contained in:
Danilo Bargen 2022-10-22 22:00:29 +02:00 committed by GitHub
commit ab5148f237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,7 +334,7 @@ impl Config {
.custom_pages_dir
.map(|path| PathWithSource {
path,
source: PathSource::OsConvention,
source: PathSource::ConfigFile,
})
.or_else(|| {
get_app_root(AppDataType::UserData, &crate::APP_INFO)
@ -342,7 +342,7 @@ impl Config {
// Note: The `join("")` call ensures that there's a trailing slash
PathWithSource {
path: path.join("pages").join(""),
source: PathSource::ConfigFile,
source: PathSource::OsConvention,
}
})
.ok()