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:
parent
84b3b72ff1
commit
aca8dfab70
1 changed files with 9 additions and 5 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue