Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed Dec 6, 2024
1 parent 08e9657 commit a63c59d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mainwindow_styles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ void MainWindow::setStyles()
BOOL useDarkMode = BOOL(settings->value("theme") == "dark");
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE, &useDarkMode, sizeof(useDarkMode));
SetFocus(hWnd);
ShowWindow(hwnd, SW_MINIMIZE);
ShowWindow(hwnd, SW_RESTORE);
ShowWindow(hWnd, SW_MINIMIZE);
ShowWindow(hWnd, SW_RESTORE);
}
if (focusWindow)
{
HWND hWnd = reinterpret_cast<HWND>(focusWindow->winId());
SetFocus(hWnd);
ShowWindow(hwnd, SW_MINIMIZE);
ShowWindow(hwnd, SW_RESTORE);
ShowWindow(hWnd, SW_MINIMIZE);
ShowWindow(hWnd, SW_RESTORE);
}
#endif
}
Expand Down

0 comments on commit a63c59d

Please sign in to comment.