summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefAnimations.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings/qPrefAnimations.h')
-rw-r--r--core/settings/qPrefAnimations.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/settings/qPrefAnimations.h b/core/settings/qPrefAnimations.h
index 4971aa06d..5b0fcaea4 100644
--- a/core/settings/qPrefAnimations.h
+++ b/core/settings/qPrefAnimations.h
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef QPREFANIMATIONS_H
#define QPREFANIMATIONS_H
+#include "core/pref.h"
#include <QObject>
@@ -18,7 +19,7 @@ public:
void sync() { loadSync(true); }
public:
- int animation_speed() const;
+ static inline int animation_speed() { return prefs.animation_speed; };
public slots:
void set_animation_speed(int value);