mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
SocketAPI: send the path with UPDATE_VIEW
This commit is contained in:
parent
7772501cdf
commit
a281b36d6f
1 changed files with 10 additions and 2 deletions
|
@ -222,9 +222,17 @@ void SocketApi::slotReadSocket()
|
|||
}
|
||||
}
|
||||
|
||||
void SocketApi::slotSyncStateChanged(const QString&)
|
||||
void SocketApi::slotSyncStateChanged(const QString& alias)
|
||||
{
|
||||
broadcastMessage("UPDATE_VIEW");
|
||||
QString msg = QLatin1String("UPDATE_VIEW");
|
||||
|
||||
Folder *f = FolderMan::instance()->folder(alias);
|
||||
if (f) {
|
||||
msg.append(QLatin1String(":"));
|
||||
msg.append(QDir::cleanPath(f->path()));
|
||||
}
|
||||
|
||||
broadcastMessage(msg);
|
||||
}
|
||||
|
||||
void SocketApi::slotJobCompleted(const QString &folder, const SyncFileItem &item)
|
||||
|
|
Loading…
Reference in a new issue