2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix crash with event loop nesting.

This commit is contained in:
John Preston
2018-12-25 14:11:10 +04:00
parent a65afdac95
commit d1be4c6d96
5 changed files with 15 additions and 28 deletions

View File

@@ -657,21 +657,6 @@ void OpenSystemSettingsForPermission(PermissionType type) {
}
}
bool NativeEventNestsLoop(void *message) {
const auto code = static_cast<const MSG*>(message)->message;
if (code > WM_NULL && code <= WM_GETMINMAXINFO) {
return true;
} else if (code >= WM_NCCREATE && code <= WM_NCXBUTTONDBLCLK) {
return true;
} else if (code == WM_WINDOWPOSCHANGING
|| code == WM_WINDOWPOSCHANGED
|| code == WM_STYLECHANGING
|| code == WM_STYLECHANGED) {
return true;
}
return false;
}
} // namespace Platform
void psNewVersion() {