mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-11 13:10:02 +02:00
16 lines
529 B
TypeScript
16 lines
529 B
TypeScript
import { useFullScreenPlayerStore, useSettingsStore } from '/@/renderer/store';
|
|
|
|
export function closeLocalVisualizerSurfaces(): void {
|
|
const fullScreen = useFullScreenPlayerStore.getState();
|
|
fullScreen.actions.setStore({
|
|
...(fullScreen.expanded && fullScreen.activeTab === 'visualizer'
|
|
? { activeTab: 'queue' as const }
|
|
: {}),
|
|
visualizerExpanded: false,
|
|
});
|
|
|
|
useSettingsStore.getState().actions.setSettings({
|
|
general: { showVisualizerInSidebar: false },
|
|
});
|
|
}
|