settings: add startup_slave_screen option
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user