feat: add disableMediaControls function to prevent media key actions

This commit is contained in:
HorizonCode committed 2026-05-30 00:06:16 +02:00
1 parent dc06b53089
commit 67bc968497
2 files changed
+39 -1

No files matched your search

+2 -1
View File
@@ -1,5 +1,5 @@
import { active_custom_theme, custom_themes } from './global';
import { setGlobalVolume } from './utils';
import { disableMediaControls, setGlobalVolume } from './utils';
import { betterFetch } from '@better-fetch/fetch';
import { convertFileSrc } from '@tauri-apps/api/core';
import { invoke } from '@tauri-apps/api/core';
@@ -268,6 +268,7 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volum
themeScript.mountTheme(themeContainer, { assets: theme.assets });
}
setGlobalVolume(volume);
disableMediaControls();
};
export const deleteTheme = async (themeToUninstall: Theme) => {