[Xfce4-commits] [apps/xfdashboard] 05/08: Correct calculation of score if number of application launches should be included in score calculation.
noreply at xfce.org
noreply at xfce.org
Mon Jan 25 13:21:14 CET 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 06af6d07757661444adfcc5abec5308ebab47d75
Author: Stephan Haller <nomad at froevel.de>
Date: Mon Jan 25 11:43:45 2016 +0100
Correct calculation of score if number of application launches should be included in score calculation.
---
xfdashboard/applications-search-provider.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/xfdashboard/applications-search-provider.c b/xfdashboard/applications-search-provider.c
index 100aad1..f26c71e 100644
--- a/xfdashboard/applications-search-provider.c
+++ b/xfdashboard/applications-search-provider.c
@@ -859,12 +859,10 @@ static gfloat _xfdashboard_applications_search_provider_score(XfdashboardApplica
doIncludeLaunchCounts=TRUE;
if(doIncludeLaunchCounts)
{
+ maxPoints+=(_xfdashboard_applications_search_provider_statistics.maxLaunches*1.0f);
+
stats=_xfdashboard_applications_search_provider_statistics_get(g_app_info_get_id(inAppInfo));
- if(stats)
- {
- maxPoints+=(_xfdashboard_applications_search_provider_statistics.maxLaunches*1.0f);
- pointsSearch+=(stats->launchCounter*1.0f);
- }
+ if(stats) pointsSearch+=(stats->launchCounter*1.0f);
}
/* Calculate score */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list