Virtual files: Use theme to check for option availability

This commit is contained in:
Christian Kamm 2018-08-31 15:50:36 +02:00 committed by Kevin Ottens
parent 94e63ef7b9
commit 251e01a440
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -439,7 +439,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
ac = menu->addAction(tr("Remove folder sync connection")); ac = menu->addAction(tr("Remove folder sync connection"));
connect(ac, &QAction::triggered, this, &AccountSettings::slotRemoveCurrentFolder); connect(ac, &QAction::triggered, this, &AccountSettings::slotRemoveCurrentFolder);
if (ConfigFile().showExperimentalOptions() || folder->useVirtualFiles()) { if (Theme::instance()->showVirtualFilesOption() || folder->useVirtualFiles()) {
ac = menu->addAction(tr("Create virtual files for new files (Experimental)")); ac = menu->addAction(tr("Create virtual files for new files (Experimental)"));
ac->setCheckable(true); ac->setCheckable(true);
ac->setChecked(folder->useVirtualFiles()); ac->setChecked(folder->useVirtualFiles());