dont set tooltip if enabling updates, set tooltip on save incase of update between click and save

This commit is contained in:
Chozabu 2015-09-02 01:09:39 +01:00
parent da90bfec08
commit 1630577e04
2 changed files with 2 additions and 0 deletions

View File

@ -678,6 +678,7 @@ void MainWindow::updateTrayCombine()
}
void MainWindow::toggleStatusToolTip(bool toggle){
if(!toggle)return;
QString tray = "RetroShare\n";
tray += "\n" + nameAndLocation;
trayIcon->setToolTip(tray);

View File

@ -144,6 +144,7 @@ bool AppearancePage::save(QString &errmsg)
Settings->setValueToGroup("StatusBar", "HideToaster", QVariant(ui.checkBoxHideToasterDisable->isChecked()));
Settings->setValueToGroup("StatusBar", "ShowSysTrayOnStatusBar", QVariant(ui.checkBoxShowSystrayOnStatus->isChecked()));
Settings->setValueToGroup("StatusBar", "DisableSysTrayToolTip", QVariant(ui.checkBoxDisableSysTrayToolTip->isChecked()));
MainWindow::getInstance()->toggleStatusToolTip(ui.checkBoxDisableSysTrayToolTip->isChecked());
return true;
}