mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-19 03:54:23 +02:00
auto switch polling on output change when on default output
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type JSX, type WheelEvent } from 'react'
|
||||
import { useLayoutEffect, useRef, useState, type CSSProperties, type JSX, type WheelEvent } from 'react'
|
||||
import { useNowPlayingStore } from '../stores/nowPlayingStore'
|
||||
import { useAudioStore } from '../stores/audioStore'
|
||||
import { usePerformanceStore } from '../stores/performanceStore'
|
||||
@@ -133,9 +133,6 @@ export default function BottomBar({ onClose, onHeightChange }: BottomBarProps):
|
||||
captureNotice,
|
||||
inputGainDb,
|
||||
clearCaptureNotice,
|
||||
refreshSystemSources,
|
||||
refreshDevices,
|
||||
refreshBackendSupport,
|
||||
selectSystemSource,
|
||||
selectDevice,
|
||||
startCapture,
|
||||
@@ -143,12 +140,6 @@ export default function BottomBar({ onClose, onHeightChange }: BottomBarProps):
|
||||
} = useAudioStore()
|
||||
const showBanner = useUiStore((s) => s.showBanner)
|
||||
|
||||
useEffect(() => {
|
||||
void refreshBackendSupport()
|
||||
void refreshSystemSources()
|
||||
void refreshDevices()
|
||||
}, [refreshBackendSupport, refreshSystemSources, refreshDevices])
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (!onHeightChange || !rootRef.current) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user