Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Aug 19, 2024
1 parent dc46c29 commit 157d972
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/HomePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,14 @@ static void OnPaintAbout(HWND hwnd) {
EndPaint(hwnd, &ps);
}

static void OnSizeAbout(HWND hwnd) {
MainWindow* win = FindMainWindowByHwnd(hwnd);
if (!win) {
ReportDebugIf(true);
return;
}
}

static void CopyAboutInfoToClipboard() {
str::Str info(512);
char* ver = GetAppVersionTemp();
Expand Down Expand Up @@ -481,6 +489,10 @@ LRESULT CALLBACK WndProcAbout(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) {
// do nothing, helps to avoid flicker
return TRUE;

case WM_SIZE:
OnSizeAbout(hwnd);
break;

case WM_PAINT:
OnPaintAbout(hwnd);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/Installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static void OnButtonInstall(InstallerWnd* wnd) {
if (gInstallStarted) {
// I've seen crashes where somehow "Install" button was pressed twice
logf("OnButtonInstall: called but gInstallStarted is %d\n", (int)gInstallStarted);
//ReportIfQuick(gInstallStarted);
// ReportIfQuick(gInstallStarted);
return;
}

Expand Down
1 change: 0 additions & 1 deletion src/Toolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ void UpdateFindbox(MainWindow* win) {
InvalidateRect(win->hwndToolbar, nullptr, TRUE);
UpdateWindow(win->hwndToolbar);


auto cursorId = win->IsDocLoaded() ? IDC_IBEAM : IDC_ARROW;
SetClassLongPtrW(win->hwndFindEdit, GCLP_HCURSOR, (LONG_PTR)GetCachedCursor(cursorId));
if (!win->IsDocLoaded()) {
Expand Down

0 comments on commit 157d972

Please sign in to comment.