mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
dont set tooltip if enabling updates, set tooltip on save incase of update between click and save
This commit is contained in:
parent
da90bfec08
commit
1630577e04
@ -678,6 +678,7 @@ void MainWindow::updateTrayCombine()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::toggleStatusToolTip(bool toggle){
|
void MainWindow::toggleStatusToolTip(bool toggle){
|
||||||
|
if(!toggle)return;
|
||||||
QString tray = "RetroShare\n";
|
QString tray = "RetroShare\n";
|
||||||
tray += "\n" + nameAndLocation;
|
tray += "\n" + nameAndLocation;
|
||||||
trayIcon->setToolTip(tray);
|
trayIcon->setToolTip(tray);
|
||||||
|
@ -144,6 +144,7 @@ bool AppearancePage::save(QString &errmsg)
|
|||||||
Settings->setValueToGroup("StatusBar", "HideToaster", QVariant(ui.checkBoxHideToasterDisable->isChecked()));
|
Settings->setValueToGroup("StatusBar", "HideToaster", QVariant(ui.checkBoxHideToasterDisable->isChecked()));
|
||||||
Settings->setValueToGroup("StatusBar", "ShowSysTrayOnStatusBar", QVariant(ui.checkBoxShowSystrayOnStatus->isChecked()));
|
Settings->setValueToGroup("StatusBar", "ShowSysTrayOnStatusBar", QVariant(ui.checkBoxShowSystrayOnStatus->isChecked()));
|
||||||
Settings->setValueToGroup("StatusBar", "DisableSysTrayToolTip", QVariant(ui.checkBoxDisableSysTrayToolTip->isChecked()));
|
Settings->setValueToGroup("StatusBar", "DisableSysTrayToolTip", QVariant(ui.checkBoxDisableSysTrayToolTip->isChecked()));
|
||||||
|
MainWindow::getInstance()->toggleStatusToolTip(ui.checkBoxDisableSysTrayToolTip->isChecked());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user