mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Fix tray tooltip again
This commit is contained in:
parent
f913790f29
commit
5a443bde70
1 changed files with 9 additions and 1 deletions
|
@ -413,9 +413,14 @@ void Application::slotRemoveFolder( const QString& alias )
|
|||
if( ret == QMessageBox::No ) {
|
||||
return;
|
||||
}
|
||||
Folder *f = _folderMan->folder(alias);
|
||||
if( f && _overallStatusStrings.contains( f )) {
|
||||
_overallStatusStrings.remove( f );
|
||||
}
|
||||
|
||||
_folderMan->slotRemoveFolder( alias );
|
||||
_statusDialog->slotRemoveSelectedFolder( );
|
||||
computeOverallSyncStatus();
|
||||
setupContextMenu();
|
||||
}
|
||||
|
||||
|
@ -623,7 +628,10 @@ void Application::computeOverallSyncStatus()
|
|||
|
||||
// create the tray blob message
|
||||
QStringList allStatusStrings = _overallStatusStrings.values();
|
||||
if( ! allStatusStrings.isEmpty() )
|
||||
trayMessage = allStatusStrings.join("\n");
|
||||
else
|
||||
trayMessage = tr("No sync folders configured.");
|
||||
|
||||
QIcon statusIcon = _theme->syncStateIcon( overallResult.status(), 48 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue