From c03bb632f75c0b6be6909f6d341ed4093f4b3b24 Mon Sep 17 00:00:00 2001 From: JuanJakobo <34421964+JuanJakobo@users.noreply.github.com> Date: Mon, 22 Feb 2021 16:49:16 +0100 Subject: [PATCH] dialog for file handling changed --- src/handler/eventHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handler/eventHandler.cpp b/src/handler/eventHandler.cpp index 6bc8c58..1a042e9 100644 --- a/src/handler/eventHandler.cpp +++ b/src/handler/eventHandler.cpp @@ -176,7 +176,7 @@ int EventHandler::pointerHandler(const int type, const int par1, const int par2) } else { - if (_nextcloud.getItems().at(itemID).getState() == FileState::ISYNCED || _nextcloud.getItems().at(itemID).getState() == FileState::ILOCAL) + if (_nextcloud.getItems().at(itemID).getState() == FileState::ISYNCED || (_nextcloud.isWorkOffline() && _nextcloud.getItems().at(itemID).getState() == FileState::IOUTSYNCED)) { dialogResult = DialogSynchro(ICON_QUESTION, "Action", "What do you want to do?", "Open", "Remove", "Cancel"); @@ -223,7 +223,7 @@ int EventHandler::pointerHandler(const int type, const int par1, const int par2) if (_loginView->logginClicked(par1, par2) == 2) { _menu.drawLoadingScreen(); - + if (_nextcloud.login(_loginView->getURL(), _loginView->getUsername(), _loginView->getPassword())) { _listView = std::unique_ptr(new ListView(_menu.getContentRect(), _nextcloud.getItems()));