Skip to content

Commit

Permalink
fix(Mobile): Add a correct check to show or not keybinds section (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmarchi authored Dec 4, 2024
1 parent fa3eba2 commit f012a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies {

}


if (hasProperty('postBuildExtras')) {
postBuildExtras()
}
6 changes: 3 additions & 3 deletions src/routes/settings/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { SettingsStore } from "$lib/state"
import { UIStore } from "$lib/state/ui"
import type { NavRoute } from "$lib/types"
import { checkMobile } from "$lib/utils/Mobile"
import { checkMobile, isAndroidOriOS } from "$lib/utils/Mobile"
import { onMount } from "svelte"
import { _ } from "svelte-i18n"
import { get, writable, type Writable } from "svelte/store"
Expand Down Expand Up @@ -136,8 +136,8 @@
UIStore.state.sidebarOpen.subscribe(s => (sidebarOpen = s))
$: setRoutes = get(settingsRoutes)
SettingsStore.state.subscribe(value => {
let isMobile: boolean = checkMobile()
SettingsStore.state.subscribe(async value => {
let isMobile: boolean = await isAndroidOriOS()
if (value.devmode) {
if (!get(settingsRoutes).find(route => route.to === SettingsRoute.Developer)) {
settingsRoutes.update(routes => [
Expand Down

0 comments on commit f012a05

Please sign in to comment.