mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-17 06:05:53 -06:00
Fixed 'Fallback to software control' is not working properly in conjunction with 'Change Brightness/Volume for all screens'.
This commit is contained in:
parent
3b66d3e57c
commit
c658952ab7
3 changed files with 4 additions and 4 deletions
|
|
@ -396,14 +396,14 @@ extension AppDelegate: MediaKeyTapDelegate {
|
|||
}
|
||||
let delay = isRepeat ? 0.05 : 0 // Introduce a small delay to handle the media key being held down
|
||||
var isAnyDisplayInSwAfterBrightnessMode: Bool = false
|
||||
for display in affectedDisplays where (display as? ExternalDisplay)?.isSwBrightnessNotDefault() ?? false {
|
||||
for display in affectedDisplays where ((display as? ExternalDisplay)?.isSwBrightnessNotDefault() ?? false) && !((display as? ExternalDisplay)?.isSw() ?? false) {
|
||||
isAnyDisplayInSwAfterBrightnessMode = true
|
||||
}
|
||||
self.keyRepeatTimers[mediaKey] = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { _ in
|
||||
for display in affectedDisplays where display.isEnabled && !display.isVirtual {
|
||||
switch mediaKey {
|
||||
case .brightnessUp:
|
||||
if !(isAnyDisplayInSwAfterBrightnessMode && !((display as? ExternalDisplay)?.isSwBrightnessNotDefault() ?? false)) {
|
||||
if !(isAnyDisplayInSwAfterBrightnessMode && !(((display as? ExternalDisplay)?.isSwBrightnessNotDefault() ?? false) && !((display as? ExternalDisplay)?.isSw() ?? false))) {
|
||||
display.stepBrightness(isUp: mediaKey == .brightnessUp, isSmallIncrement: isSmallIncrement)
|
||||
}
|
||||
case .brightnessDown:
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1864</string>
|
||||
<string>1868</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1864</string>
|
||||
<string>1868</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSBackgroundOnly</key>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue