Skip to content

Commit

Permalink
less logging; change ReportIf=>RepertDebugIf in TbSetButtonInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Sep 10, 2024
1 parent e31eef3 commit ced0621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ class PrintThreadData {
data->current = current;
data->total = total;
auto fn = MkFunc0<UpdatePrintProgressData>(UpdatePrintProgress, data);
uitask::Post(fn, "TaskPrintUpdateProgress");
uitask::Post(fn, nullptr);
}

bool WasCanceled() {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/WinUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,7 @@ void HwndDestroyWindowSafe(HWND* hwndPtr) {

void TbSetButtonInfo(HWND hwnd, int buttonId, TBBUTTONINFO* info) {
auto res = SendMessageW(hwnd, TB_SETBUTTONINFO, buttonId, (LPARAM)info);
ReportIf(0 == res);
ReportDebugIf(0 == res);
}

void TbGetPadding(HWND hwnd, int* padX, int* padY) {
Expand Down

0 comments on commit ced0621

Please sign in to comment.