>> = Lazy::new(|| {
let mut hashmap = HashMap::new();
hashmap.insert(
- "OpenDeck".to_owned(),
+ PRODUCT_NAME.to_owned(),
Category {
icon: None,
actions: vec![
diff --git a/src/components/ActionList.svelte b/src/components/ActionList.svelte
index dbe16e3..2575286 100644
--- a/src/components/ActionList.svelte
+++ b/src/components/ActionList.svelte
@@ -2,6 +2,7 @@
import type { Action } from "$lib/Action";
import { localisations } from "$lib/settings";
+ import { PRODUCT_NAME } from "$lib/singletons";
import { invoke } from "@tauri-apps/api/core";
@@ -15,7 +16,7 @@
- {#each Object.entries(categories).sort((a, b) => a[0] == "OpenDeck" ? -1 : b[0] == "OpenDeck" ? 1 : a[0].localeCompare(b[0])) as [name, { icon, actions }]}
+ {#each Object.entries(categories).sort((a, b) => a[0] == PRODUCT_NAME ? -1 : b[0] == PRODUCT_NAME ? 1 : a[0].localeCompare(b[0])) as [name, { icon, actions }]}
{#if icon || (actions[0] && plugins.find((x) => x.id == actions[0].plugin) && actions.every((x) => x.plugin == actions[0].plugin))}
diff --git a/src/components/NoDevicesDetected.svelte b/src/components/NoDevicesDetected.svelte
index b4b7fcc..07c15a1 100644
--- a/src/components/NoDevicesDetected.svelte
+++ b/src/components/NoDevicesDetected.svelte
@@ -1,4 +1,6 @@