Permalink
Browse files

Fix the updater tray to show the new Package Manager when right-click…

…ed, and

when new package updates are available, show the correct bubble popup
  • Loading branch information...
1 parent 154e0cc commit a071509d9312a436d9a9bb1a551cedcce48d5c3b @kmoore134 kmoore134 committed Jun 11, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src-qt4/pc-systemupdatertray/UpdaterTray.cpp
@@ -25,7 +25,7 @@ const QString PATCHTMPDIR_DEFAULT( PREFIX + "/tmp" );
/* The Update STATUS Flags */
#define SYSTEM_UP2DATE 0
#define SYSTEM_UPDATE_AVAIL 1
-#define PACKAGE_UPDATE_AVAIL 1
+#define PACKAGE_UPDATE_AVAIL 2
#define SYSTEM_CHECKING4UPDATES 4
#define SYSTEM_UPDATING 5
#define CHECK_FAILED 6
@@ -111,6 +111,8 @@ void UpdaterTray::programInit()
trayIconMenu->setIcon(contextIcon);
trayIconMenu->addSeparator();
trayIconMenu->addAction( tr("Start the Update Manager"), this, SLOT(slotOpenUpdateManager()));
+ trayIconMenu->addAction( tr("Start the Package Manager"), this, SLOT(slotOpenPackageManager()));
+ trayIconMenu->addSeparator();
trayIconMenu->addAction( tr("Start the AppCafe"), this, SLOT(slotOpenSoftwareManager()));
trayIconMenu->addAction( tr("Start the Warden"), this, SLOT(slotOpenJailManager()));
trayIconMenu->addSeparator();
@@ -752,7 +754,7 @@ void UpdaterTray::slotPopulatePBIList()
void UpdaterTray::slotShowPkgUpdatePopup()
{
disconnect(trayIcon, SIGNAL(messageClicked()), 0, 0 );
- trayIcon->showMessage(tr("System Updates Available"), tr("Important package updates are available. Click here to install them!"), QSystemTrayIcon::Critical);
+ trayIcon->showMessage(tr("Package Updates Available"), tr("Important package updates are available. Click here to install them!"), QSystemTrayIcon::Critical);
connect( trayIcon, SIGNAL(messageClicked()), this, SLOT(slotOpenPackageManager()) );
}

0 comments on commit a071509

Please sign in to comment.