From aca8dfab70e4954fc684b63f80cc6b508bc57035 Mon Sep 17 00:00:00 2001 From: madbad Date: Sun, 29 Nov 2015 17:35:50 +0000 Subject: [PATCH] WebServer: do not display the WebServer status icon if IDLE (display only if sending or receiving) git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6289 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: c0b0c553024bd30ddf0a401fccff201363fae161 Former-commit-id: bcb64c2bdd086fbc0e46c11b5fb7eda30a9dbb63 --- src/libs/tgfclient/webserver.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/libs/tgfclient/webserver.cpp b/src/libs/tgfclient/webserver.cpp index ca30d70d5..5899b2e13 100644 --- a/src/libs/tgfclient/webserver.cpp +++ b/src/libs/tgfclient/webserver.cpp @@ -356,12 +356,16 @@ void NotificationManager::updateWebserverStatusUi(){ } if(this->screenHandle > 0){ - //if webserver is busy display busy icon - std::string webServerIcon = "busyicon"; - webServerIcon.append(to_string(webserverState)); + //if webserver is not IDLE display busy icon (sending or receiving) + if(webserverState != WEBSERVER_IDLE){ + + std::string webServerIcon = "busyicon"; + webServerIcon.append(to_string(webserverState)); - this->notifyUiIdBusyIcon = GfuiMenuCreateStaticImageControl(this->screenHandle, this->menuXMLDescHdle, webServerIcon.c_str()); - GfuiVisibilitySet(this->screenHandle, this->notifyUiIdBusyIcon, GFUI_VISIBLE); + this->notifyUiIdBusyIcon = GfuiMenuCreateStaticImageControl(this->screenHandle, this->menuXMLDescHdle, webServerIcon.c_str()); + GfuiVisibilitySet(this->screenHandle, this->notifyUiIdBusyIcon, GFUI_VISIBLE); + + } }