From 8fc38348dc5131c021b1a4bd14fc2606e432c754 Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Mon, 28 May 2018 00:10:39 +1000 Subject: [PATCH] Apply fix to redshift intensity slider --- shell/infopanedropdown.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/shell/infopanedropdown.cpp b/shell/infopanedropdown.cpp index 89f1fa9..75ca831 100644 --- a/shell/infopanedropdown.cpp +++ b/shell/infopanedropdown.cpp @@ -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"); + } } }