mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add mac-specific virtual files settings section
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8ab52b8683
commit
35659bbda2
@ -13,6 +13,7 @@
|
||||
*/
|
||||
|
||||
#include "settingsdialog.h"
|
||||
#include "macOS/fileprovider.h"
|
||||
#include "ui_settingsdialog.h"
|
||||
|
||||
#include "folderman.h"
|
||||
@ -39,6 +40,7 @@
|
||||
#include <QWidgetAction>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QQuickView>
|
||||
|
||||
namespace {
|
||||
const QString TOOLBAR_CSS()
|
||||
@ -132,7 +134,25 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
|
||||
auto *networkSettings = new NetworkSettings;
|
||||
_ui->stack->addWidget(networkSettings);
|
||||
|
||||
connect(_ui->stack, &QStackedWidget::currentChanged, this, &SettingsDialog::currentPageChanged);
|
||||
#ifdef BUILD_FILE_PROVIDER_MODULE
|
||||
|
||||
if (Mac::FileProvider::fileProviderAvailable()) {
|
||||
const auto macVfsAction = createColorAwareAction(QStringLiteral(":/client/theme/files.svg"), tr("Virtual files"));
|
||||
_actionGroup->addAction(macVfsAction);
|
||||
_toolBar->addAction(macVfsAction);
|
||||
const auto macVfsSettingsView = new QQuickView;
|
||||
const auto macVfsSettingsContainer = QWidget::createWindowContainer(macVfsSettingsView);
|
||||
_ui->stack->addWidget(macVfsSettingsContainer);
|
||||
|
||||
//macVfsSettingsView->setSource()
|
||||
|
||||
connect(_ui->stack, &QStackedWidget::currentChanged,
|
||||
this, &SettingsDialog::currentPageChanged);
|
||||
|
||||
_actionGroupWidgets.insert(macVfsAction, macVfsSettingsContainer);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
_actionGroupWidgets.insert(generalAction, generalSettings);
|
||||
_actionGroupWidgets.insert(networkAction, networkSettings);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user