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
This commit is contained in:
madbad 2015-11-29 17:35:50 +00:00
parent 84b3b72ff1
commit aca8dfab70

View file

@ -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);
}
}