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,7 +356,9 @@ void NotificationManager::updateWebserverStatusUi(){
} }
if(this->screenHandle > 0){ if(this->screenHandle > 0){
//if webserver is busy display busy icon //if webserver is not IDLE display busy icon (sending or receiving)
if(webserverState != WEBSERVER_IDLE){
std::string webServerIcon = "busyicon"; std::string webServerIcon = "busyicon";
webServerIcon.append(to_string(webserverState)); webServerIcon.append(to_string(webserverState));
@ -365,6 +367,8 @@ void NotificationManager::updateWebserverStatusUi(){
} }
}
} }
//initialize the notification manager //initialize the notification manager
NotificationManager notifications; NotificationManager notifications;