Mercurial > projects > package-update-indicator
annotate org.guido-berhoerster.code.package-update-indicator.preferences.desktop.in @ 31:9905d4ae351c
Fix continuos loop of update checks if the refresh cache interval is 0
If the interval for refreshing the cache is set to 0 each check for available
updates refreshes the cache and causes an "updates-changed" signal to be
emitted after a short delay which in turn triggers another check for updates.
The "updates-changed" signal does not actually mean that the number of
available updates has changed but rather that the package metadata cache has
been invalidated. Fix this by blocking the "updates-changed" signal handler
from when a periodic or irregular check is started until 4 seconds after it has
finished. This is necessary since the signal will be delivered with a delay
after a transaction has been completed.
In addition prevent checks for updates triggered by the "updates-changed"
signal from refreshing the cache even the interval is 0 since the emission of
the signal implies that the cache has just been refreshed.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Thu, 29 Aug 2019 13:48:47 +0200 |
parents | 26e319ace486 |
children | f27122a7bb02 |
rev | line source |
---|---|
1
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
1 [Desktop Entry] |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
2 Name=Package Update Indicator Preferences |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
3 GenericName=Package Update Indicator Preferences |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
4 Comment=Edit the Preferences for Package Update Indicator |
17
26e319ace486
Add keywords to desktop files
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
1
diff
changeset
|
5 Keywords=updates;preferences; |
1
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
6 Icon=preferences-other |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
7 Exec=package-update-indicator-prefs |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
8 Terminal=false |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
9 Type=Application |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
10 Categories=Settings;PackageManager;GTK; |
2f04ec9e0506
Add preferences application
Guido Berhoerster <guido+pui@berhoerster.name>
parents:
diff
changeset
|
11 NotShowIn=GNOME; |