mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-30 03:13:56 +03:00
Fix unused isUnity warning for no appindicator builds
This commit is contained in:
parent
de4224763b
commit
83c89d46f3
@ -608,13 +608,10 @@ void MainWindow::createTrayIcon()
|
||||
if(trayIcon) return;
|
||||
#endif
|
||||
|
||||
QString desktop;
|
||||
bool isUnity;
|
||||
|
||||
desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
isUnity = (desktop.toLower() == "unity");
|
||||
|
||||
#ifdef USE_LIBAPPINDICATOR
|
||||
const QString desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
const bool isUnity = (desktop.toLower() == "unity");
|
||||
|
||||
if(isUnity) //Application Indicators for Unity
|
||||
{
|
||||
GtkWidget *menu;
|
||||
|
Loading…
Reference in New Issue
Block a user