If cloud storage is offline, show that in title bar
Not sure if "local cache" is the best text, but it's accurate. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a58e6d117
commit
8f4e649c68
@ -1679,12 +1679,18 @@ QString MainWindow::displayedFilename(QString fullFilename)
|
||||
QFileInfo fileInfo(f);
|
||||
QString fileName(fileInfo.fileName());
|
||||
|
||||
if (fullFilename.contains(prefs.cloud_git_url))
|
||||
return tr("[cloud storage for] %1").arg(fileName.left(fileName.indexOf('[')));
|
||||
else
|
||||
if (fullFilename.contains(prefs.cloud_git_url)) {
|
||||
QString email = fileName.left(fileName.indexOf('['));
|
||||
if (prefs.git_local_only)
|
||||
return tr("[local cache for] %1").arg(email);
|
||||
else
|
||||
return tr("[cloud storage for] %1").arg(email);
|
||||
} else {
|
||||
return fileName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::setAutomaticTitle()
|
||||
{
|
||||
setTitle();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user