GUI: Set tooltip of local webserver button according to server state

This commit is contained in:
Peter Bozsó 2016-07-26 19:08:08 +02:00 committed by Alexander Tkachev
parent 37859a9203
commit 9665719b66

View File

@ -1893,6 +1893,7 @@ void GlobalOptionsDialog::setupCloudTab() {
_runServerButton->setVisible(true);
_runServerButton->setPos(_runServerButton->getRelX(), serverLabelPosition + serverButtonY - serverInfoY);
_runServerButton->setLabel(_(serverIsRunning ? "Stop server" : "Run server"));
_runServerButton->setTooltip(_(serverIsRunning ? "Stop local webserver" : "Run local webserver"));
}
if (_serverInfoLabel) {
_serverInfoLabel->setVisible(true);