Skip to content

Commit

Permalink
A different error message on mobile when the File Explorer view is no…
Browse files Browse the repository at this point in the history
…t available (e.g. is deferred).
  • Loading branch information
SebastianMC committed Jan 23, 2025
1 parent b0592e4 commit 10e0ae0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ export default class CustomSortPlugin
this.customSortAppliedAtLeastOnce = false
fileExplorer.view.requestSort();
} else {
this.showNotice('Custom sort File Explorer view problem. See console for detailed message.');
if (Platform.isDesktop) {
this.showNotice('Custom sort File Explorer view problem. See console for detailed message.')
} else { // No console access on mobile
this.showNotice(`Custom sort File Explorer view problem - is it visible?`
+ ` Can't apply custom sorting when the File Explorer was not displayed at least once.`)
}
setIcon(this.ribbonIconEl, ICON_SORT_SUSPENDED_GENERAL_ERROR)
this.settings.suspended = true
this.saveSettings()
Expand Down

0 comments on commit 10e0ae0

Please sign in to comment.