diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-12-22 14:28:38 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-12-22 15:09:46 +0300 |
commit | cee7a92f0a3e62b6d9058058d2dc4ad0c63b15b8 (patch) | |
tree | f4735dce27ac7e1b830be5e313e1f070b9d7f71d | |
parent | 7179e5d8546e37853851190b03f37296e02bced0 (diff) |
Partly Revert "Remove Availability menu from the ui"
This partly reverts commit 934da5b219e4774fe0f4ec422ed067437ac44e3c which removed the vfs mode selection by accident.
Fixes: #9314
-rw-r--r-- | src/gui/accountsettings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 6782be3c8..5a48582ce 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -323,6 +323,10 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos) removeFolderAction(menu); + if (folder->virtualFilesEnabled() && !Theme::instance()->forceVirtualFilesOption()) { + menu->addAction(tr("Disable virtual file support..."), this, &AccountSettings::slotDisableVfsCurrentFolder); + } + if (Theme::instance()->showVirtualFilesOption() && !folder->virtualFilesEnabled() && FolderMan::instance()->checkVfsAvailability(folder->path())) { const auto mode = bestAvailableVfsMode(); |