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) {
|
switch (state) {
|
||||||
case AccountState::Connected:
|
case AccountState::Connected:
|
||||||
qDebug() << "Enabling sync scheduler, scheduling all folders";
|
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->setSyncEnabled(true);
|
||||||
folderMan->slotScheduleAllFolders();
|
folderMan->slotScheduleAllFolders();
|
||||||
break;
|
break;
|
||||||
|
@ -302,7 +303,7 @@ void Application::slotUpdateConnectionErrors(int accountState)
|
||||||
_startupNetworkError = accountState == AccountState::NetworkError;
|
_startupNetworkError = accountState == AccountState::NetworkError;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning FIXME
|
#warning FIXME: connection errors should be shown per account
|
||||||
#if 0
|
#if 0
|
||||||
AccountState *as = AccountStateManager::instance()->accountState();
|
AccountState *as = AccountStateManager::instance()->accountState();
|
||||||
if (as) {
|
if (as) {
|
||||||
|
|
|
@ -345,7 +345,7 @@ Folder* FolderMan::setupFolderFromConfigFile(const QString &file) {
|
||||||
targetPath.remove(0,1);
|
targetPath.remove(0,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning fixme
|
#warning fixme: which account does this folder use?
|
||||||
AccountState* accountState = AccountManager::instance()->accounts().value(0).data();
|
AccountState* accountState = AccountManager::instance()->accounts().value(0).data();
|
||||||
if (!accountState) {
|
if (!accountState) {
|
||||||
qWarning() << "can't create folder without an account";
|
qWarning() << "can't create folder without an account";
|
||||||
|
|
|
@ -213,7 +213,7 @@ void ownCloudGui::setConnectionErrors( bool /*connected*/, const QStringList& fa
|
||||||
|
|
||||||
void ownCloudGui::slotComputeOverallSyncStatus()
|
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 (AccountState *a = AccountManager::instance()->accounts().value(0).data()) {
|
||||||
if (a->isSignedOut()) {
|
if (a->isSignedOut()) {
|
||||||
_tray->setIcon(Theme::instance()->folderOfflineIcon(true));
|
_tray->setIcon(Theme::instance()->folderOfflineIcon(true));
|
||||||
|
|
Loading…
Reference in a new issue