소스 검색

fix: --clamp argparse missing .append() blocks multi-screen apply (#577)

Multi-screen mode requires one --clamp per --screen-root, but the
argparse registration only allowed a single occurrence — passing two
crashes with "Duplicate argument --clamp". Mirror what --scaling
already does and append the modifier.

Co-authored-by: kuro-blk <kuro@example.com>
Aaron 4 달 전
부모
커밋
21ffa69a77
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/WallpaperEngine/Application/ApplicationContext.cpp

+ 2 - 1
src/WallpaperEngine/Application/ApplicationContext.cpp

@@ -394,7 +394,8 @@ void ApplicationContext::loadSettingsFromArgv () {
 	    } else {
 		this->settings.render.window.clamp = flags;
 	    }
-	});
+	})
+	.append ();
 
     backgroundGroup.add_argument ("--layer")
 	.help (