Fix small issues

This commit is contained in:
Lost Paul 2024-05-21 17:42:40 +02:00
parent 0978c220af
commit 64ce683a5c
3 changed files with 4 additions and 2 deletions

View file

@ -104,7 +104,7 @@ export class FolderOverviewSettings extends Modal {
.setName('Folder path for the overview')
.setDesc('Choose the folder path for the overview')
.addSearch((search) => {
new FolderSuggest(search.inputEl, this.plugin)
new FolderSuggest(search.inputEl, this.plugin, false)
search
.setPlaceholder('Folder path')
.setValue(this.yaml?.folderPath || '')

View file

@ -133,7 +133,7 @@ export async function turnIntoFolderNote(plugin: FolderNotesPlugin, file: TFile,
if (!excludedFolder) {
excludedFolderExisted = false;
excludedFolder = new ExcludedFolder(folder.path, plugin.settings.excludeFolders.length, plugin);
excludedFolder = new ExcludedFolder(folder.path, plugin.settings.excludeFolders.length, undefined, plugin);
addExcludedFolder(plugin, excludedFolder);
} else if (!excludedFolder.disableSync) {
disabledSync = false;

View file

@ -121,6 +121,7 @@ export const DEFAULT_SETTINGS: FolderNotesSettings = {
excludeFolderDefaultSettings: {
type: 'folder',
path: '',
id: crypto.randomUUID(),
subFolders: true,
disableSync: true,
disableAutoCreate: true,
@ -134,6 +135,7 @@ export const DEFAULT_SETTINGS: FolderNotesSettings = {
excludePatternDefaultSettings: {
type: 'pattern',
path: '',
id: crypto.randomUUID(),
subFolders: true,
disableSync: true,
disableAutoCreate: true,