diff --git a/src/ui/linux/TogglDesktop/Resources.qrc b/src/ui/linux/TogglDesktop/Resources.qrc index a9b5655543..2e7f7303f1 100644 --- a/src/ui/linux/TogglDesktop/Resources.qrc +++ b/src/ui/linux/TogglDesktop/Resources.qrc @@ -31,6 +31,5 @@ fonts/RobotoTTF/Roboto-Regular.ttf fonts/RobotoTTF/Roboto-Thin.ttf fonts/RobotoTTF/Roboto-ThinItalic.ttf - icons/16x16/toggldesktop_gray.png diff --git a/src/ui/linux/TogglDesktop/icons/16x16/toggldesktop_gray.png b/src/ui/linux/TogglDesktop/icons/16x16/toggldesktop_gray.png deleted file mode 100644 index d20b446b3d..0000000000 Binary files a/src/ui/linux/TogglDesktop/icons/16x16/toggldesktop_gray.png and /dev/null differ diff --git a/src/ui/linux/TogglDesktop/mainwindowcontroller.cpp b/src/ui/linux/TogglDesktop/mainwindowcontroller.cpp index 57ccf72013..3f9cdbff06 100644 --- a/src/ui/linux/TogglDesktop/mainwindowcontroller.cpp +++ b/src/ui/linux/TogglDesktop/mainwindowcontroller.cpp @@ -89,20 +89,8 @@ MainWindowController::MainWindowController( icon.addFile(QString::fromUtf8(":/icons/1024x1024/toggldesktop.png")); setWindowIcon(icon); - trayIcon = new QSystemTrayIcon(this); - normalTrayIcon = QIcon(":/icons/16x16/toggldesktop.png"); - disabledTrayIcon = QIcon(":/icons/16x16/toggldesktop_gray.png"); - connectMenuActions(); enableMenuActions(); - - trayMenu = new QMenu(this); - trayMenu->addAction(actionStop); - trayMenu->addAction(actionContinue); - trayMenu->addAction(actionLogout); - - trayIcon->setContextMenu(trayMenu); - trayIcon->show(); } MainWindowController::~MainWindowController() { @@ -177,11 +165,6 @@ void MainWindowController::enableMenuActions() { actionClear_Cache->setEnabled(loggedIn); actionSend_Feedback->setEnabled(loggedIn); actionReports->setEnabled(loggedIn); - if (tracking) { - trayIcon->setIcon(normalTrayIcon); - } else { - trayIcon->setIcon(disabledTrayIcon); - } } void MainWindowController::connectMenuActions() { diff --git a/src/ui/linux/TogglDesktop/mainwindowcontroller.h b/src/ui/linux/TogglDesktop/mainwindowcontroller.h index 2d431bd689..536c5d9cfa 100644 --- a/src/ui/linux/TogglDesktop/mainwindowcontroller.h +++ b/src/ui/linux/TogglDesktop/mainwindowcontroller.h @@ -92,11 +92,6 @@ class MainWindowController : public QMainWindow { QAction *actionSend_Feedback; QAction *actionReports; - QMenu *trayMenu; - QIcon normalTrayIcon; - QIcon disabledTrayIcon; - QSystemTrayIcon *trayIcon; - PreferencesDialog *preferencesDialog; AboutDialog *aboutDialog; FeedbackDialog *feedbackDialog;