Skip to content

Commit

Permalink
Dialog: Remove pointless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Aug 26, 2019
1 parent 1e85883 commit 152e30a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,17 @@ func (dlg *Dialog) Run() int {
func (dlg *Dialog) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr {
switch msg {
case win.WM_COMMAND:
if wphi := win.HIWORD(uint32(wParam)); wphi == 0 {
if win.HIWORD(uint32(wParam)) == 0 {
switch win.LOWORD(uint32(wParam)) {
case DlgCmdOK:
if dlg.defaultButton != nil {
dlg.defaultButton.raiseClicked()
}
if dlg.defaultButton != nil {
dlg.defaultButton.raiseClicked()
}

case DlgCmdCancel:
if dlg.cancelButton != nil {
dlg.cancelButton.raiseClicked()
}
}
}
}
}
Expand Down

0 comments on commit 152e30a

Please sign in to comment.