mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
add option to disable updates to systray tooltip
This commit is contained in:
parent
4006b08093
commit
da90bfec08
4 changed files with 50 additions and 5 deletions
|
@ -677,12 +677,19 @@ void MainWindow::updateTrayCombine()
|
|||
updateFriends();
|
||||
}
|
||||
|
||||
void MainWindow::toggleStatusToolTip(bool toggle){
|
||||
QString tray = "RetroShare\n";
|
||||
tray += "\n" + nameAndLocation;
|
||||
trayIcon->setToolTip(tray);
|
||||
}
|
||||
|
||||
void MainWindow::updateStatus()
|
||||
{
|
||||
// This call is essential to remove locks due to QEventLoop re-entrance while asking gpg passwds. Dont' remove it!
|
||||
if(RsAutoUpdatePage::eventsLocked())
|
||||
return;
|
||||
|
||||
if(Settings->valueFromGroup("StatusBar", "DisableSysTrayToolTip", QVariant(false)).toBool())
|
||||
return;
|
||||
float downKb = 0;
|
||||
float upKb = 0;
|
||||
rsConfig->GetCurrentDataRates(downKb, upKb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue