Fixed contrast and volume sliders not working in beta6

This commit is contained in:
waydabber 2021-08-12 00:00:55 +02:00
parent 994d9938b0
commit 3b66d3e57c
3 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1849</string>
<string>1864</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>

View file

@ -31,10 +31,10 @@ class SliderHandler {
self.display.toggleMute(fromVolumeSlider: true)
}
if self.display.isSw() {
_ = self.display.setSwBrightness(value: UInt8(value))
} else if self.cmd == DDC.Command.brightness {
if !(self.display.isSw()) {
_ = self.display.writeDDCValues(command: self.cmd, value: UInt16(value))
} else if self.cmd == DDC.Command.brightness {
_ = self.display.setSwBrightness(value: UInt8(value))
}
self.display.saveValue(value, for: self.cmd)
}

View file

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1849</string>
<string>1864</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSBackgroundOnly</key>