minor syntax
This commit is contained in:
parent
b18f018d65
commit
2b8fc86242
4
PKGBUILD
4
PKGBUILD
|
@ -9,8 +9,8 @@ license=('GPL3')
|
||||||
depends=('python'
|
depends=('python'
|
||||||
'python-pyqt5'
|
'python-pyqt5'
|
||||||
'python-yaml'
|
'python-yaml'
|
||||||
'hicolor-icon-theme'
|
'pacman-contrib'
|
||||||
'pacman')
|
'hicolor-icon-theme')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
optdepends=()
|
optdepends=()
|
||||||
source=("git+https://github.com/ericlay/$pkgname.git")
|
source=("git+https://github.com/ericlay/$pkgname.git")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# systrayUpdater
|
# systrayUpdater
|
||||||
PyQt5 system tray applet notifier of available updates.
|
PyQt5 system tray applet notifier of available updates.
|
||||||
|
|
||||||
For Arch (based) systems only!
|
For Arch (based) systems only!
|
||||||
|
|
|
@ -105,12 +105,6 @@ updateTimer.timeout.connect(count)
|
||||||
updateTimer.singleShot(1,count) # Initially populate available updates
|
updateTimer.singleShot(1,count) # Initially populate available updates
|
||||||
updateTimer.start(wait)
|
updateTimer.start(wait)
|
||||||
|
|
||||||
# Adding items to the tray
|
|
||||||
tray = QSystemTrayIcon()
|
|
||||||
tray.setIcon(icon)
|
|
||||||
tray.setToolTip(avail)
|
|
||||||
tray.setVisible(True)
|
|
||||||
|
|
||||||
# Creating the menu/options
|
# Creating the menu/options
|
||||||
menu = QMenu()
|
menu = QMenu()
|
||||||
runUpdate = QAction("Run Update")
|
runUpdate = QAction("Run Update")
|
||||||
|
@ -120,7 +114,9 @@ runUpdate.triggered.connect(update)
|
||||||
readNews.triggered.connect(news)
|
readNews.triggered.connect(news)
|
||||||
quit.triggered.connect(app.quit)
|
quit.triggered.connect(app.quit)
|
||||||
|
|
||||||
# Place the menu in the System Tray
|
# Create applet and place menu in it
|
||||||
|
tray = QSystemTrayIcon()
|
||||||
|
tray.setIcon(icon)
|
||||||
tray.setContextMenu(menu)
|
tray.setContextMenu(menu)
|
||||||
|
|
||||||
app.exec_()
|
app.exec_()
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=SysTrayUpdater
|
Name=SysTrayUpdater
|
||||||
Exec=/usr/bin/systrayUpdater
|
Exec=/usr/bin/systray-updater
|
||||||
Icon=/usr/share/icons/hicolor/symbolic/arch-blue-symbolic-80.svg
|
Icon=/usr/share/icons/hicolor/symbolic/arch-blue-symbolic-80.svg
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
|
|
Loading…
Reference in New Issue