Browse Source

UI: Use FileNameWithoutSpace for screenshot output

Andrew 4 years ago
parent
commit
7f5013cf37
1 changed files with 3 additions and 1 deletions
  1. 3 1
      UI/window-basic-main-screenshot.cpp

+ 3 - 1
UI/window-basic-main-screenshot.cpp

@@ -127,13 +127,15 @@ void ScreenshotObj::Save()
 			? config_get_string(config, "SimpleOutput", "FilePath")
 			: adv_path;
 
+	bool noSpace =
+		config_get_bool(config, "SimpleOutput", "FileNameWithoutSpace");
 	const char *filenameFormat =
 		config_get_string(config, "Output", "FilenameFormatting");
 	bool overwriteIfExists =
 		config_get_bool(config, "Output", "OverwriteIfExists");
 
 	path = GetOutputFilename(
-		rec_path, "png", false, overwriteIfExists,
+		rec_path, "png", noSpace, overwriteIfExists,
 		GetFormatString(filenameFormat, "Screenshot", nullptr).c_str());
 
 	th = std::thread([this] { MuxAndFinish(); });