Skip to content

Commit 8a10fcd

Browse files
authored
Fix volume control issue when only internal display is present (MonitorControl#680)
1 parent e8ec8cd commit 8a10fcd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

MonitorControl/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6440</string>
22+
<string>6443</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

MonitorControl/Support/MediaKeyTapManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class MediaKeyTapManager: MediaKeyTapDelegate {
173173
keys.removeAll { keysToDelete.contains($0) }
174174
}
175175
// Remove volume related keys if audio device is controllable
176-
if !isInternalDisplayOnly, let defaultAudioDevice = app.coreAudio.defaultOutputDevice {
176+
if let defaultAudioDevice = app.coreAudio.defaultOutputDevice {
177177
let keysToDelete: [MediaKey] = [.volumeUp, .volumeDown, .mute]
178178
if !prefs.bool(forKey: PrefKey.allScreensVolume.rawValue), prefs.bool(forKey: PrefKey.useAudioDeviceNameMatching.rawValue) {
179179
if DisplayManager.shared.updateAudioControlTargetDisplays(deviceName: defaultAudioDevice.name) == 0 {

MonitorControlHelper/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6440</string>
22+
<string>6443</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSBackgroundOnly</key>

0 commit comments

Comments
 (0)