#188 - Group of changes addressing compatibility issued with Obsidian 1.7.2 and newer

This commit is contained in:
SebastianMC 2025-01-06 13:12:19 +01:00
parent 971bea5792
commit 92c0e0c431
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -21,3 +21,5 @@ data.json
# Exclude macOS Finder (System Explorer) View States # Exclude macOS Finder (System Explorer) View States
.DS_Store .DS_Store
/yarn.lock /yarn.lock
/.run/test.run.xml
/.run/build.run.xml

View File

@ -90,7 +90,6 @@ export default class CustomSortPlugin
ribbonIconEl: HTMLElement // On small-screen mobile devices this is useless (ribbon is re-created on-the-fly) ribbonIconEl: HTMLElement // On small-screen mobile devices this is useless (ribbon is re-created on-the-fly)
sortSpecCache?: SortSpecsCollection | null sortSpecCache?: SortSpecsCollection | null
initialAutoOrManualSortingTriggered: boolean
customSortAppliedAtLeastOnce: boolean = false customSortAppliedAtLeastOnce: boolean = false
showNotice(message: string, timeout?: number) { showNotice(message: string, timeout?: number) {
@ -299,7 +298,6 @@ export default class CustomSortPlugin
this.readAndParseSortingSpec(); this.readAndParseSortingSpec();
if (this.sortSpecCache) { if (this.sortSpecCache) {
if (fileExplorer) { if (fileExplorer) {
this.initialAutoOrManualSortingTriggered = true
this.customSortAppliedAtLeastOnce = false this.customSortAppliedAtLeastOnce = false
fileExplorer.view.requestSort(); fileExplorer.view.requestSort();
} else { } else {