fix: short nightlight fade duration if missed start or end time or if manually activated
This commit is contained in:
@@ -54,7 +54,7 @@ class NightlightManager : public QObject {
|
||||
[[nodiscard]] int lastTemp() const;
|
||||
[[nodiscard]] int currentTemp() const;
|
||||
|
||||
Q_INVOKABLE void toggle();
|
||||
Q_INVOKABLE void toggle(bool fast);
|
||||
Q_INVOKABLE void apply();
|
||||
|
||||
void setStartTime(const int& time);
|
||||
@@ -105,8 +105,8 @@ class NightlightManager : public QObject {
|
||||
QByteArray m_socketBuffer;
|
||||
QTimer m_reconnectTimer;
|
||||
|
||||
void start();
|
||||
void end();
|
||||
void start(double fade);
|
||||
void end(double fade);
|
||||
[[nodiscard]] QString hyprlandDir() const;
|
||||
[[nodiscard]] QString eventSocketPath() const;
|
||||
[[nodiscard]] QString resolvePluginPath() const;
|
||||
|
||||
Reference in New Issue
Block a user