mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
make sure filter buttons' tooltips are updated when the bar is shown
This commit is contained in:
+4
-2
@@ -2064,7 +2064,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
}
|
||||
|
||||
//set button tooltips
|
||||
[fFilterBar setCountAll: [fTorrents count] active: active downloading: downloading seeding: seeding paused: paused];
|
||||
if (fFilterBar)
|
||||
[fFilterBar setCountAll: [fTorrents count] active: active downloading: downloading seeding: seeding paused: paused];
|
||||
|
||||
//clear display cache for not-shown torrents
|
||||
[previousTorrents removeObjectsInArray: allTorrents];
|
||||
@@ -2899,8 +2900,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults] setObject: FILTER_NONE forKey: @"Filter"];
|
||||
[[NSUserDefaults standardUserDefaults] setInteger: GROUP_FILTER_ALL_TAG forKey: @"FilterGroup"];
|
||||
[self applyFilter];
|
||||
}
|
||||
|
||||
[self applyFilter]; //do even if showing to ensure tooltips are updated
|
||||
}
|
||||
|
||||
//doesn't save shown state
|
||||
|
||||
Reference in New Issue
Block a user