From 48f352b7f8152d797e023093124f63bcfbb9da19 Mon Sep 17 00:00:00 2001 From: Robert Bressi Date: Mon, 30 Sep 2019 21:29:56 -0700 Subject: [PATCH] Fixed values for audioMuteScreenBlank being persisted to audioSpeakerVolume (#130) --- MonitorControl/Support/Utils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MonitorControl/Support/Utils.swift b/MonitorControl/Support/Utils.swift index 0fac01d..2255b14 100644 --- a/MonitorControl/Support/Utils.swift +++ b/MonitorControl/Support/Utils.swift @@ -80,8 +80,8 @@ class Utils: NSObject { os_log(" - current ddc value: %{public}@", type: .info, String(muteValues!.current)) os_log(" - maximum ddc value: %{public}@", type: .info, String(muteValues!.max)) - display.saveValue(Int(muteValues!.current), for: command) - display.saveMaxValue(Int(muteValues!.max), for: command) + display.saveValue(Int(muteValues!.current), for: .audioMuteScreenBlank) + display.saveMaxValue(Int(muteValues!.max), for: .audioMuteScreenBlank) } // If the system is not currently muted, or doesn't support the mute command, display the current volume as the slider value