mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
@ -75,6 +75,10 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
|
||||
if (GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, buffer) > 0)
|
||||
{
|
||||
g_Data.skinsPath = buffer;
|
||||
if (g_Data.skinsPath.back() != L'\\' || g_Data.skinsPath.back() != L'/')
|
||||
{
|
||||
g_Data.skinsPath += L'\\';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -99,7 +99,7 @@ void CDialogInstall::Create(HINSTANCE hInstance, LPWSTR lpCmdLine)
|
||||
}
|
||||
|
||||
HANDLE hMutex;
|
||||
if (IsRunning(L"RainmeterSkinInstaller", &hMutex))
|
||||
if (IsRunning(L"Rainmeter Skin Installer", &hMutex))
|
||||
{
|
||||
HWND hwnd = FindWindow(L"#32770", L"Rainmeter Skin Installer");
|
||||
SetForegroundWindow(hwnd);
|
||||
|
@ -48,7 +48,7 @@ CDialogPackage::~CDialogPackage()
|
||||
void CDialogPackage::Create(HINSTANCE hInstance, LPWSTR lpCmdLine)
|
||||
{
|
||||
HANDLE hMutex;
|
||||
if (IsRunning(L"RainmeterBackup", &hMutex))
|
||||
if (IsRunning(L"Rainmeter Skin Packager", &hMutex))
|
||||
{
|
||||
HWND hwnd = FindWindow(L"#32770", L"Rainmeter Skin Packager");
|
||||
SetForegroundWindow(hwnd);
|
||||
@ -552,10 +552,14 @@ INT_PTR CALLBACK CDialogPackage::SelectFolderDlgProc(HWND hWnd, UINT uMsg, WPARA
|
||||
{
|
||||
HWND item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_EXISTING_COMBO);
|
||||
EnableWindow(item, TRUE);
|
||||
int sel = ComboBox_GetCurSel(item);
|
||||
item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_CUSTOM_EDIT);
|
||||
EnableWindow(item, FALSE);
|
||||
item = GetDlgItem(hWnd, IDC_PACKAGESELECTFOLDER_CUSTOMBROWSE_BUTTON);
|
||||
EnableWindow(item, FALSE);
|
||||
|
||||
item = GetDlgItem(hWnd, IDCLOSE);
|
||||
EnableWindow(item, sel != -1);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user