Fix typos and resture log texts

master
JuanJakobo 2022-09-08 15:11:23 +02:00
parent 2042ca4da5
commit e1b4f709fe
5 changed files with 8 additions and 5 deletions

View File

@ -295,7 +295,7 @@ bool WebDAV::get(WebDAVItem &item)
ShowHourglassForce(); ShowHourglassForce();
UpdateProgressbar(("Starting Download of " + item.path).c_str(), 0); UpdateProgressbar(("Starting Download to " + item.localPath).c_str(), 0);
CURLcode res; CURLcode res;
CURL *curl = curl_easy_init(); CURL *curl = curl_easy_init();
@ -327,7 +327,7 @@ bool WebDAV::get(WebDAVItem &item)
switch (response_code) switch (response_code)
{ {
case 200: case 200:
Log::writeInfoLog("finished download of " + item.path + " to " + item.localPath); Log::writeInfoLog("finished download of " + item.title + " to " + item.localPath);
return true; return true;
break; break;
case 401: case 401:

View File

@ -35,6 +35,6 @@ private:
char *_menu = strdup("Menu"); char *_menu = strdup("Menu");
char *_open = strdup("Open"); char *_open = strdup("Open");
char *_sync = strdup("Sync"); char *_sync = strdup("Sync");
char *_remove = strdup("Remove"); char *_remove = strdup("Remove local");
}; };
#endif #endif

View File

@ -277,6 +277,7 @@ void EventHandler::contextMenuHandler(const int index)
else else
{ {
//TODO upload to cloud //TODO upload to cloud
//Dialog file is offline, do you want to sync it to the cloud?
Message(ICON_ERROR, "Error", "The File is local and upload to cloud is currently not supported.", 2000); Message(ICON_ERROR, "Error", "The File is local and upload to cloud is currently not supported.", 2000);
_webDAVView->invertCurrentEntryColor(); _webDAVView->invertCurrentEntryColor();
} }

View File

@ -61,11 +61,13 @@ int MainMenu::createMenu(bool filePicker, bool loggedIn, iv_menuhandler handler)
//show logged in //show logged in
{loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 101, _syncFolder, NULL}, {loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 101, _syncFolder, NULL},
{loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 103, _sortBy, NULL}, {loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 103, _sortBy, NULL},
{loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 102, _logout, NULL},
//show if filePicker is shown //show if filePicker is shown
{filePicker ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 104, _chooseFolder, NULL}, {filePicker ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 104, _chooseFolder, NULL},
//show always //show always
{ITEM_ACTIVE, 105, _info, NULL}, {ITEM_ACTIVE, 105, _info, NULL},
//show logged in
{loggedIn ? (short)ITEM_ACTIVE : (short)ITEM_HIDDEN, 102, _logout, NULL},
//show always
{ITEM_ACTIVE, 106, _exit, NULL}, {ITEM_ACTIVE, 106, _exit, NULL},
{0, 0, NULL, NULL}}; {0, 0, NULL, NULL}};

View File

@ -30,6 +30,6 @@ public:
WebDAVItem &getCurrentEntry() { return getEntry(_selectedEntry); }; WebDAVItem &getCurrentEntry() { return getEntry(_selectedEntry); };
WebDAVItem &getEntry(int entryID) { return std::dynamic_pointer_cast<WebDAVViewEntry>(_entries.at(entryID))->get(); }; WebDAVItem &getEntry(int entryID) { return std::static_pointer_cast<WebDAVViewEntry>(_entries.at(entryID))->get(); };
}; };
#endif #endif