Skip to content

Commit 10e0ae0

Browse files
committed
A different error message on mobile when the File Explorer view is not available (e.g. is deferred).
1 parent b0592e4 commit 10e0ae0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,12 @@ export default class CustomSortPlugin
305305
this.customSortAppliedAtLeastOnce = false
306306
fileExplorer.view.requestSort();
307307
} else {
308-
this.showNotice('Custom sort File Explorer view problem. See console for detailed message.');
308+
if (Platform.isDesktop) {
309+
this.showNotice('Custom sort File Explorer view problem. See console for detailed message.')
310+
} else { // No console access on mobile
311+
this.showNotice(`Custom sort File Explorer view problem - is it visible?`
312+
+ ` Can't apply custom sorting when the File Explorer was not displayed at least once.`)
313+
}
309314
setIcon(this.ribbonIconEl, ICON_SORT_SUSPENDED_GENERAL_ERROR)
310315
this.settings.suspended = true
311316
this.saveSettings()

0 commit comments

Comments
 (0)