summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-07-26 17:47:52 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-07-26 17:47:52 -0400
commitf18a5dacda41a97afea38aa6a8814b3c281ae758 (patch)
treebaaa992321aca8515c6f7762f638d7b766126e6d /src
parentRemove uneeded log message (diff)
downloadnheko-f18a5dacda41a97afea38aa6a8814b3c281ae758.tar.xz
Ignore badge label macos deprecations
Diffstat (limited to 'src')
-rw-r--r--src/TrayIcon.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp

index e7348b89..8f62e563 100644 --- a/src/TrayIcon.cpp +++ b/src/TrayIcon.cpp
@@ -134,12 +134,16 @@ TrayIcon::setUnreadCount(int count) { // Use the native badge counter in MacOS. #if defined(Q_OS_MAC) +// currently, to avoid writing obj-c code, ignore deprecated warnings on the badge functions +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" auto labelText = count == 0 ? "" : QString::number(count); if (labelText == QtMac::badgeLabelText()) return; QtMac::setBadgeLabelText(labelText); +#pragma clang diagnostic pop #elif defined(Q_OS_WIN) // FIXME: Find a way to use Windows apis for the badge counter (if any). #else