mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash with event loop nesting.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user