Skip to content

Commit cf2451a

Browse files
committed
fixed a very dumb mistake in handling of menu action creation related to force vfs
1 parent ee0faa8 commit cf2451a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/gui/FoldersGui/accountfolderscontroller.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ void AccountFoldersController::buildMenuActions()
167167
delete _chooseSync;
168168
_chooseSync = nullptr;
169169
// don't create the enable vfs action as user can't turn vfs off:
170-
return;
171170
}
172171

173172
// todo: #54 - we may need to handle value of Theme::showVirtualFilesOption here too. I already think it should be handled
174173
// by bestAvailableVfsMode but maybe we need something more here. future worry.
175-
176-
_enableVfs = new QAction(this);
177-
itemActions.push_back(_enableVfs);
178-
connect(_enableVfs, &QAction::triggered, this, &AccountFoldersController::onEnableVfs);
174+
else {
175+
_enableVfs = new QAction(this);
176+
itemActions.push_back(_enableVfs);
177+
connect(_enableVfs, &QAction::triggered, this, &AccountFoldersController::onEnableVfs);
178+
}
179179
}
180180

181181
if (_chooseSync) {

0 commit comments

Comments
 (0)