Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Apply fix to redshift intensity slider
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed May 27, 2018
1 parent 912b745 commit 8fc3834
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions shell/infopanedropdown.cpp
Expand Up @@ -1131,13 +1131,21 @@ void InfoPaneDropdown::on_endRedshift_timeChanged(const QTime &time)

void InfoPaneDropdown::on_redshiftIntensity_sliderMoved(int position)
{
QProcess::startDetached("redshift -O " + QString::number(position));
if (isNewRedshift) {
QProcess::startDetached("redshift -P -O " + QString::number(position));
} else {
QProcess::startDetached("redshift -O " + QString::number(position));
}
}

void InfoPaneDropdown::on_redshiftIntensity_sliderReleased()
{
if (!isRedshiftOn) {
QProcess::startDetached("redshift -O 6500");
if (isNewRedshift) {
QProcess::startDetached("redshift -P -O 6500");
} else {
QProcess::startDetached("redshift -O 6500");
}
}
}

Expand Down

0 comments on commit 8fc3834

Please sign in to comment.