mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-23 01:27:15 +02:00
Fix OpenAL device closing in calls and voice chats.
Also add 64 bit Windows info in crash platform string.
This commit is contained in:
parent
9a0023cc99
commit
fbf4f912c6
4 changed files with 35 additions and 6 deletions
|
@ -88,8 +88,10 @@ void AboutBox::resizeEvent(QResizeEvent *e) {
|
|||
void AboutBox::showVersionHistory() {
|
||||
if (cRealAlphaVersion()) {
|
||||
auto url = qsl("https://tdesktop.com/");
|
||||
if (Platform::IsWindows()) {
|
||||
if (Platform::IsWindows32Bit()) {
|
||||
url += qsl("win/%1.zip");
|
||||
} else if (Platform::IsWindows64Bit()) {
|
||||
url += qsl("win64/%1.zip");
|
||||
} else if (Platform::IsOSXBuild()) {
|
||||
url += qsl("osx/%1.zip");
|
||||
} else if (Platform::IsMac()) {
|
||||
|
@ -143,5 +145,8 @@ QString currentVersionText() {
|
|||
} else if (AppBetaVersion) {
|
||||
result += " beta";
|
||||
}
|
||||
if (Platform::IsWindows64Bit()) {
|
||||
result += " x64";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -318,12 +318,36 @@ bool DumpCallback(const google_breakpad::MinidumpDescriptor &md, void *context,
|
|||
#endif // !DESKTOP_APP_DISABLE_CRASH_REPORTS
|
||||
|
||||
} // namespace
|
||||
if (Platform::IsWindowsStoreBuild()) {
|
||||
return Platform::IsWindows64Bit()
|
||||
? "WinStore64Bit"
|
||||
: "WinStore32Bit";
|
||||
} else if (Platform::IsWindows32Bit()) {
|
||||
return "Windows32Bit";
|
||||
} else if (Platform::IsWindows64Bit()) {
|
||||
return "Windows64Bit";
|
||||
} else if (Platform::IsMacStoreBuild()) {
|
||||
return "MacAppStore";
|
||||
} else if (Platform::IsOSXBuild()) {
|
||||
return "OSX";
|
||||
} else if (Platform::IsMac()) {
|
||||
return "MacOS";
|
||||
} else if (Platform::IsLinux32Bit()) {
|
||||
return "Linux32Bit";
|
||||
} else if (Platform::IsLinux64Bit()) {
|
||||
return "Linux64bit";
|
||||
}
|
||||
Unexpected("Platform in CrashReports::PlatformString.");
|
||||
|
||||
QString PlatformString() {
|
||||
if (Platform::IsWindowsStoreBuild()) {
|
||||
return qsl("WinStore");
|
||||
} else if (Platform::IsWindows()) {
|
||||
return qsl("Windows");
|
||||
return Platform::IsWindows64Bit()
|
||||
? qsl("WinStore64Bit")
|
||||
: qsl("WinStore32Bit");
|
||||
} else if (Platform::IsWindows32Bit()) {
|
||||
return qsl("Windows32Bit");
|
||||
} else if (Platform::IsWindows64Bit()) {
|
||||
return qsl("Windows64Bit");
|
||||
} else if (Platform::IsMacStoreBuild()) {
|
||||
return qsl("MacAppStore");
|
||||
} else if (Platform::IsOSXBuild()) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f770025cc18e2fba295733923a527c8cb0f1d513
|
||||
Subproject commit 2bf29ab1a5458003c8ed250886e08c61cce5ff72
|
|
@ -1 +1 @@
|
|||
Subproject commit de46d688f0fb6a04b0607dff892016d99e01e8b6
|
||||
Subproject commit af7269454c371b7e1045429d60cd728f7580ee4a
|
Loading…
Add table
Reference in a new issue