2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix blurry App Switcher icon on macOS.

Fixes #5267.
This commit is contained in:
John Preston
2018-10-24 12:28:11 +04:00
parent f0e18ac619
commit 6db4972208
6 changed files with 25 additions and 8 deletions

View File

@@ -52,6 +52,10 @@ bool IsApplicationActive() {
return static_cast<QApplication*>(QApplication::instance())->activeWindow() != nullptr;
}
void SetApplicationIcon(const QIcon &icon) {
qApp->setWindowIcon(icon);
}
QString CurrentExecutablePath(int argc, char *argv[]) {
constexpr auto kMaxPath = 1024;
char result[kMaxPath] = { 0 };