From 10e0ae096f8d58aee9cbcd9835c1e366b8879fb4 Mon Sep 17 00:00:00 2001 From: SebastianMC <23032356+SebastianMC@users.noreply.github.com> Date: Thu, 23 Jan 2025 23:17:38 +0100 Subject: [PATCH] A different error message on mobile when the File Explorer view is not available (e.g. is deferred). --- src/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 93d46de..b8c72ca 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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()