Skip to content

Commit

Permalink
Update winforms.py
Browse files Browse the repository at this point in the history
修复问题:当窗口置顶时弹出确认框位于窗口底部,且使用pyinstaller打包后会无响应

Fixed the problem: when the window is fixed to the top, the pop-up confirmation box is located at the bottom of the window, and it will be unresponsive after packaging with pyinstaller
  • Loading branch information
lixuelong135 authored Jul 13, 2024
1 parent 96e44aa commit b79a75c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webview/platforms/winforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,12 @@ def _set_title():
_set_title()


def create_confirmation_dialog(title, message, _):
def create_confirmation_dialog(title, message, uid):
i = BrowserView.instances.get(uid)

if not i:
return

result = WinForms.MessageBox.Show(message, title, WinForms.MessageBoxButtons.OKCancel)
return result == WinForms.DialogResult.OK

Expand Down

0 comments on commit b79a75c

Please sign in to comment.