mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-14 09:48:53 +03:00
Add explanations to fixmes
This commit is contained in:
parent
a932eac832
commit
0d30e01e98
3 changed files with 4 additions and 3 deletions
|
@ -264,6 +264,7 @@ void Application::slotAccountStateChanged(int state)
|
|||
switch (state) {
|
||||
case AccountState::Connected:
|
||||
qDebug() << "Enabling sync scheduler, scheduling all folders";
|
||||
#warning FIXME: this should schedule a sync for the folders of the account that connected
|
||||
folderMan->setSyncEnabled(true);
|
||||
folderMan->slotScheduleAllFolders();
|
||||
break;
|
||||
|
@ -302,7 +303,7 @@ void Application::slotUpdateConnectionErrors(int accountState)
|
|||
_startupNetworkError = accountState == AccountState::NetworkError;
|
||||
}
|
||||
|
||||
#warning FIXME
|
||||
#warning FIXME: connection errors should be shown per account
|
||||
#if 0
|
||||
AccountState *as = AccountStateManager::instance()->accountState();
|
||||
if (as) {
|
||||
|
|
|
@ -345,7 +345,7 @@ Folder* FolderMan::setupFolderFromConfigFile(const QString &file) {
|
|||
targetPath.remove(0,1);
|
||||
}
|
||||
|
||||
#warning fixme
|
||||
#warning fixme: which account does this folder use?
|
||||
AccountState* accountState = AccountManager::instance()->accounts().value(0).data();
|
||||
if (!accountState) {
|
||||
qWarning() << "can't create folder without an account";
|
||||
|
|
|
@ -213,7 +213,7 @@ void ownCloudGui::setConnectionErrors( bool /*connected*/, const QStringList& fa
|
|||
|
||||
void ownCloudGui::slotComputeOverallSyncStatus()
|
||||
{
|
||||
#warning FIXME
|
||||
#warning FIXME: overall status needs to look at all accounts
|
||||
if (AccountState *a = AccountManager::instance()->accounts().value(0).data()) {
|
||||
if (a->isSignedOut()) {
|
||||
_tray->setIcon(Theme::instance()->folderOfflineIcon(true));
|
||||
|
|
Loading…
Reference in a new issue