mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
update notifications by type only when several types are among the updates
This commit is contained in:
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
## [0.6.2] 2019-09-
|
## [0.6.2] 2019-09-
|
||||||
### Improvements
|
### Improvements
|
||||||
- Update notifications showing the number of updates by type as well
|
- Update notifications showing the number of updates by type as well ( if there are from more than one packaging type )
|
||||||
- AUR:
|
- AUR:
|
||||||
- Installed files available in the Info window
|
- Installed files available in the Info window
|
||||||
- Improving Arch distro checking
|
- Improving Arch distro checking
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ class TrayIcon(QSystemTrayIcon):
|
|||||||
msg = StringIO()
|
msg = StringIO()
|
||||||
msg.write(self.i18n['notification.update{}'.format('' if n_updates == 1 else 's')].format(n_updates))
|
msg.write(self.i18n['notification.update{}'.format('' if n_updates == 1 else 's')].format(n_updates))
|
||||||
|
|
||||||
|
if len(ups_by_type) > 1:
|
||||||
for ptype, count in ups_by_type.items():
|
for ptype, count in ups_by_type.items():
|
||||||
msg.write('\n * {} ( {} )'.format(ptype.capitalize(), count))
|
msg.write('\n * {} ( {} )'.format(ptype.capitalize(), count))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user