not allow empty in ignorepaths
This commit is contained in:
parent
d0af937fd1
commit
4d6e660f90
@ -1817,7 +1817,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
|||||||
textArea
|
textArea
|
||||||
.setValue(`${this.plugin.settings.ignorePaths.join("\n")}`)
|
.setValue(`${this.plugin.settings.ignorePaths.join("\n")}`)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
this.plugin.settings.ignorePaths = value.trim().split("\n");
|
this.plugin.settings.ignorePaths = value
|
||||||
|
.trim()
|
||||||
|
.split("\n")
|
||||||
|
.filter((x) => x.trim() !== "");
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
});
|
});
|
||||||
textArea.inputEl.rows = 10;
|
textArea.inputEl.rows = 10;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user