From 1d1fcb72e34ecbf2e4496a43b3f0818a1a45fc8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Wed, 28 Jan 2026 16:14:52 +0100 Subject: [PATCH] fix: m0 should not have profiles refactor: remove old editor/chat/learn links --- src/lib/serial/device.ts | 8 ++++---- src/routes/(app)/Sidebar.svelte | 8 -------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/lib/serial/device.ts b/src/lib/serial/device.ts index 6f7e6123..323faff5 100644 --- a/src/lib/serial/device.ts +++ b/src/lib/serial/device.ts @@ -183,11 +183,11 @@ export class CharaDevice { this.company = company as typeof this.company; this.device = device as typeof this.device; this.chipset = chipset as typeof this.chipset; - if (semverGte(this.version, "2.2.0-beta.4")) { - this.profileCount = this.chipset === "M0" ? 2 : 3; + if (semverGte(this.version, "2.2.0-beta.4") && this.chipset !== "M0") { + this.profileCount = 3; } - if (semverGte(this.version, "2.2.0-beta.20")) { - this.layerCount = this.chipset === "M0" ? 3 : 4; + if (semverGte(this.version, "2.2.0-beta.20") && this.chipset !== "M0") { + this.layerCount = 4; } this.keyCount = KEY_COUNTS[this.device]; } catch (e) { diff --git a/src/routes/(app)/Sidebar.svelte b/src/routes/(app)/Sidebar.svelte index bf3cc62b..15167794 100644 --- a/src/routes/(app)/Sidebar.svelte +++ b/src/routes/(app)/Sidebar.svelte @@ -36,14 +36,6 @@ external: true, }, ], - [ - { href: "/editor", icon: "edit_document", title: "Editor", wip: true }, - { href: "/chat", icon: "chat", title: "Chat", wip: true }, - { href: "/learn", icon: "school", title: "Learn", wip: true }, - ], - /*[ - { href: "/plugin", icon: "code", title: "Plugin", wip: true }, - ],*/ ] satisfies { href: string; icon: string;