dialog for file handling changed

pull/23/head
JuanJakobo 2021-02-22 16:49:16 +01:00
parent 82adb670d4
commit c03bb632f7
1 changed files with 2 additions and 2 deletions

View File

@ -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");