mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	RainThemes wasn't started correctly if the path had spaces. Fixed.
This commit is contained in:
		| @@ -290,7 +290,7 @@ | ||||
| 			/> | ||||
| 			<Tool | ||||
| 				Name="VCPostBuildEventTool" | ||||
| 				CommandLine="if not exist ..\testbench\x32\debug\skins (mkdir ..\testbench\x32\debug\skins)
if not exist ..\testbench\x32\debug\themes (mkdir ..\testbench\x32\debug\themes)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\debug\skins
xcopy /Q /S /Y ..\Install\Themes ..\testbench\x32\debug\themes
xcopy /Q /S /Y ..\Install\Default.ini ..\testbench\x32\debug\" | ||||
| 				CommandLine="if not exist ..\testbench\x32\debug\skins (mkdir ..\testbench\x32\debug\skins)
if not exist ..\testbench\x32\debug\themes (mkdir ..\testbench\x32\debug\themes)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\debug\skins
xcopy /Q /S /Y ..\Install\Themes ..\testbench\x32\debug\themes
xcopy /Q /S /Y ..\Install\Default.ini ..\testbench\x32\debug\
" | ||||
| 			/> | ||||
| 		</Configuration> | ||||
| 		<Configuration | ||||
| @@ -476,7 +476,7 @@ | ||||
| 			/> | ||||
| 			<Tool | ||||
| 				Name="VCPostBuildEventTool" | ||||
| 				CommandLine="if not exist ..\testbench\x32\release\skins (mkdir ..\testbench\x32\release\skins)
if not exist ..\testbench\x32\release\themes (mkdir ..\testbench\x32\release\themes)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\release\skins
xcopy /Q /S /Y ..\Install\Themes ..\testbench\x32\release\themes
xcopy /Q /S /Y ..\Install\Default.ini ..\testbench\x32release\" | ||||
| 				CommandLine="if not exist ..\testbench\x32\release\skins (mkdir ..\testbench\x32\release\skins)
if not exist ..\testbench\x32\release\themes (mkdir ..\testbench\x32\release\themes)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\release\skins
xcopy /Q /S /Y ..\Install\Themes ..\testbench\x32\release\themes
xcopy /Q /S /Y ..\Install\Default.ini ..\testbench\x32\release\
" | ||||
| 			/> | ||||
| 		</Configuration> | ||||
| 		<Configuration | ||||
|   | ||||
| @@ -471,8 +471,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA | ||||
| 			} | ||||
| 			else if(wParam == ID_CONTEXT_MANAGETHEMES) | ||||
| 			{ | ||||
| 				std::wstring command = Rainmeter->GetPath(); | ||||
| 				command += L"\\Addons\\RainThemes\\RainThemes.exe"; | ||||
| 				std::wstring command = L"\"" + Rainmeter->GetPath(); | ||||
| 				command += L"\\Addons\\RainThemes\\RainThemes.exe\""; | ||||
| 				LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); | ||||
| 			} | ||||
| 			else if(wParam == ID_CONTEXT_QUIT) | ||||
| @@ -495,8 +495,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA | ||||
| 				const std::vector<std::wstring>& themes = Rainmeter->GetAllThemes(); | ||||
| 				if (pos >= 0 && pos < themes.size()) | ||||
| 				{ | ||||
| 					std::wstring command = Rainmeter->GetPath(); | ||||
| 					command += L"\\Addons\\RainThemes\\RainThemes.exe /load \""; | ||||
| 					std::wstring command = L"\"" + Rainmeter->GetPath(); | ||||
| 					command += L"\\Addons\\RainThemes\\RainThemes.exe\" /load \""; | ||||
| 					command += themes[pos]; | ||||
| 					command += L"\""; | ||||
| 					LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); | ||||
|   | ||||
| @@ -1,2 +1,2 @@ | ||||
| #pragma once | ||||
| const int revision_number = 178; | ||||
| const int revision_number = 180; | ||||
		Reference in New Issue
	
	Block a user
	 Kimmo Pekkola
					Kimmo Pekkola