mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
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:
parent
584a96c486
commit
2375129fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue