Skip to content

Commit a69c8d7

Browse files
committed
wallpaperMatcher: fix empty desc
1 parent eb71d0f commit a69c8d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config/WallpaperMatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bool CWallpaperMatcher::outputExists(const std::string_view& s) {
4747

4848
std::optional<CWallpaperMatcher::rw<const CConfigManager::SSetting>> CWallpaperMatcher::getSetting(const std::string_view& monName, const std::string_view& monDesc) {
4949
for (const auto& m : m_monitorStates) {
50-
if (m.name != monName && !m.desc.starts_with(monDesc))
50+
if (m.name != monName && (monDesc.empty() || !m.desc.starts_with(monDesc)))
5151
continue;
5252

5353
for (const auto& s : m_settings) {

0 commit comments

Comments
 (0)