diff --git a/PKGBUILD b/PKGBUILD index 117ff7d..93ec421 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Eric Lay pkgname=systrayupdater -pkgver=r48.14267bc +pkgver=r49.b4cad83 pkgrel=1 pkgdesc="PyQt5 system tray applet notifier of available updates" arch=('x86_64') diff --git a/systray-updater b/systray-updater index 053395b..bbb9583 100755 --- a/systray-updater +++ b/systray-updater @@ -37,23 +37,23 @@ f.close() iconDir = '/usr/share/icons/hicolor/symbolic/apps/' match icn: case "white": - iconFile = path.join(iconDir, 'arch-white-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-white-symbolic-24.svg')) case "blue": - iconFile = path.join(iconDir, 'arch-blue-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-blue-symbolic-24.svg')) case "red": - iconFile = path.join(iconDir, 'arch-red-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-red-symbolic-24.svg')) case "green": - iconFile = path.join(iconDir, 'arch-green-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-green-symbolic-24.svg')) case "purple": - iconFile = path.join(iconDir, 'arch-purple-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-purple-symbolic-24.svg')) case "yellow": - iconFile = path.join(iconDir, 'arch-yellow-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-yellow-symbolic-24.svg')) case "black": - iconFile = path.join(iconDir, 'arch-black-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-black-symbolic-24.svg')) case "gray": - iconFile = path.join(iconDir, 'arch-gray-symbolic-24.svg') + icon = QIcon(path.join(iconDir, 'arch-gray-symbolic-24.svg')) case _: - iconFile = path.join(path.expanduser("~/.config/systrayupdater/"), icn) + icon = QIcon(path.join(path.expanduser("~/.config/systrayupdater/"), icn)) # Run checkupdates command # Populates the available updates and count @@ -107,7 +107,6 @@ updateTimer.start(wait) # Adding items to the tray tray = QSystemTrayIcon() -icon = QIcon(iconFile) tray.setIcon(icon) tray.setToolTip(avail) tray.setVisible(True)