summaryrefslogtreecommitdiff
path: root/src/StateFileConfig.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-17 23:34:45 +0200
committerMax Kellermann <max@musicpd.org>2018-07-17 23:40:14 +0200
commit113141bf2a6b7a444477e140854ec58fc3fe4fb9 (patch)
treea0b9a195ea390790b23f84361b076e81f8192e89 /src/StateFileConfig.cxx
parentbcc1e51097b0bfac30f2ffb0d81c5b8a7cfd874f (diff)
StateFileConfig: add attribute "restore_paused"
Diffstat (limited to 'src/StateFileConfig.cxx')
-rw-r--r--src/StateFileConfig.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StateFileConfig.cxx b/src/StateFileConfig.cxx
index 4e6cc1067..e4d412b30 100644
--- a/src/StateFileConfig.cxx
+++ b/src/StateFileConfig.cxx
@@ -30,7 +30,8 @@ constexpr std::chrono::steady_clock::duration StateFileConfig::DEFAULT_INTERVAL;
StateFileConfig::StateFileConfig(const ConfigData &config)
:path(config.GetPath(ConfigOption::STATE_FILE)),
interval(config.GetUnsigned(ConfigOption::STATE_FILE_INTERVAL,
- DEFAULT_INTERVAL))
+ DEFAULT_INTERVAL)),
+ restore_paused(config.GetBool(ConfigOption::RESTORE_PAUSED, false))
{
#ifdef ANDROID
if (path.IsNull()) {