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

Function canIncreaseVolume

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

Source from the content-addressed store, hash-verified

31 * @returns `true` if increasing by one step would remain at or below the maximum, `false` otherwise.
32 */
33export function canIncreaseVolume(volumePercentage: Percentage) {
34 return volumePercentage + VOLUME_STEP <= MAXIMUM_VOLUME_PERCENTAGE;
35}
36
37/**
38 * Decreases the volume by one step, clamping to the minimum.

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected