summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 55415f21..68323d1e 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -517,6 +517,12 @@ bool Configuration::read(const std::string &config_path)
throw std::runtime_error("unknown screen: " + v);
}, defaults_to(startup_screen_type, ScreenType::Playlist)
));
+ p.add("startup_slave_screen", option_parser::worker([this](std::string v) {
+ startup_slave_screen_type = stringtoStartupScreenType(v);
+ if (startup_slave_screen_type == ScreenType::Unknown)
+ throw std::runtime_error("unknown slave screen: " + v);
+ }, defaults_to(startup_slave_screen_type, ScreenType::Playlist)
+ ));
p.add("locked_screen_width_part", assign_default<double>(
locked_screen_width_part, 50.0, [](double v) {
return v / 100;