fix: point Open mobile settings button at the Interface tab

openTabById("mobile") targeted a settings tab ID that no longer
exists (pre-existing bug, predates this branch - "mobile" isn't a
category in current Obsidian's settings sidebar). Configure mobile
toolbar actually lives under Interface, per the user; switched to
openTabById("interface") to match the id convention already used for
the View Header button elsewhere in this file. Doesn't deep-link into
the mobile toolbar sub-page specifically (no public API for that),
but at least lands on the right tab instead of doing nothing.
This commit is contained in:
johnny1093 2026-07-11 12:04:39 -04:00
parent 584a96c486
commit 2375129fe5

View file

@ -289,7 +289,7 @@ export default function AdvancedToolbarSettings({
{Platform.isMobile && (
<button
onClick={(): void => {
plugin.app.setting.openTabById("mobile");
plugin.app.setting.openTabById("interface");
}}
className="mod-cta"
>