File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,13 @@ static int RunSetAndReturnExitCode(SetOptions o)
38
38
// brightness must be a double. cast or this doesn't work
39
39
DisplayConfiguration . SetMonitorBrightness ( monitors [ o . MonitorIndex ] , ( double ) o . Brightness / 100 ) ;
40
40
}
41
- else
42
- {
43
- Console . WriteLine ( "Brightness value must be between 0-100." ) ;
44
- return 1 ;
45
- }
46
41
47
42
if ( o . Contrast >= 0 && o . Contrast <= 100 && o . MonitorIndex >= 0 && o . MonitorIndex < monitors . Count ( ) )
48
43
{
49
44
verbose . WriteLine ( $ "Setting contrast to { o . Contrast } .") ;
50
45
// contrast must be a double. cast or this doesn't work
51
46
DisplayConfiguration . SetMonitorContrast ( monitors [ o . MonitorIndex ] , ( double ) o . Contrast / 100 ) ;
52
47
}
53
- else
54
- {
55
- Console . WriteLine ( "Contrast value must be between 0-100." ) ;
56
- return 1 ;
57
- }
58
48
59
49
return 0 ;
60
50
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ deploy:
41
41
force_update : true
42
42
provider : GitHub
43
43
auth_token :
44
- secure : FsKnR43Zii08An/ZRYLWntg4qBSiLEqamIul0nAT4Qs3zdt3PwIAlKZhA/uFo2m6
44
+ secure : 17sEgxLhEIIRLDk1ooeHaWBT9fCpr6kyvmrSbvFOc9c6ZG/j+rJ3Glxpxz0yE/Iz
45
45
artifact : lux-v$(appveyor_build_version).zip
46
46
draft : false
47
47
prerelease : false
You can’t perform that action at this time.
0 commit comments