MCPcopy
hub / github.com/gitify-app/gitify / canDecreaseVolume

Function canDecreaseVolume

src/renderer/utils/ui/volume.ts:23–25  ·  view source on GitHub ↗
(volumePercentage: Percentage)

Source from the content-addressed store, hash-verified

21 * @returns `true` if decreasing by one step would remain at or above the minimum, `false` otherwise.
22 */
23export function canDecreaseVolume(volumePercentage: Percentage) {
24 return volumePercentage - VOLUME_STEP >= MINIMUM_VOLUME_PERCENTAGE;
25}
26
27/**
28 * Returns `true` if the volume can be increased by one step.

Callers 3

SystemSettingsFunction · 0.90
volume.test.tsFile · 0.90
decreaseVolumeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected