mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
fix: make background id optional so usages of -b, --bg do not require a fallback background (as expected) fixes #300
This commit is contained in:
parent
8b131fefb2
commit
555b488951
@ -26,8 +26,11 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) :
|
|||||||
|
|
||||||
backgroundGroup.add_argument ("background id")
|
backgroundGroup.add_argument ("background id")
|
||||||
.help ("The background to use as default for screens with no background specified")
|
.help ("The background to use as default for screens with no background specified")
|
||||||
|
.default_value ("")
|
||||||
.action([this](const std::string& value) -> void {
|
.action([this](const std::string& value) -> void {
|
||||||
|
if (!value.empty()) {
|
||||||
this->settings.general.defaultBackground = translateBackground (value);
|
this->settings.general.defaultBackground = translateBackground (value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
backgroundMode.add_argument ("-w", "--window")
|
backgroundMode.add_argument ("-w", "--window")
|
||||||
|
Loading…
Reference in New Issue
Block a user