mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-24 00:54:17 +02:00
Fix path source for custom pages dir (#297)
This commit is contained in:
parent
86c850282e
commit
ab5148f237
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue