adedd error message for download failures
parent
3129a7fc91
commit
8516b6e827
|
@ -206,10 +206,17 @@ int EventHandler::pointerHandler(const int type, const int par1, const int par2)
|
|||
_nextcloud.switchWorkOffline();
|
||||
}
|
||||
OpenProgressbar(1, "Downloading...", "Check network connection", 0, EventHandler::DialogHandlerStatic);
|
||||
try
|
||||
{
|
||||
_nextcloud.download(itemID);
|
||||
CloseProgressbar();
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
Log::writeLog(e.what());
|
||||
Message(ICON_ERROR, "Error", "Something has gone wrong. Please check the logs. (/system/config/nextcloud/)", 1200);
|
||||
|
||||
//TODO Include Sync notice for folders
|
||||
}
|
||||
CloseProgressbar();
|
||||
_listView->drawEntry(itemID);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue