mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Don't show PopupMenu for inactive window on macOS.
This is a fixup for 06bf67c146
.
This commit is contained in:
@@ -47,6 +47,10 @@ bool _psRunCommand(const QByteArray &command) {
|
||||
|
||||
namespace Platform {
|
||||
|
||||
bool IsApplicationActive() {
|
||||
return static_cast<QApplication*>(QApplication::instance())->activeWindow() != nullptr;
|
||||
}
|
||||
|
||||
QString CurrentExecutablePath(int argc, char *argv[]) {
|
||||
constexpr auto kMaxPath = 1024;
|
||||
char result[kMaxPath] = { 0 };
|
||||
|
Reference in New Issue
Block a user