Skip to content

Commit

Permalink
Set account as property of settings view root object rather than cont…
Browse files Browse the repository at this point in the history
…ext property

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 5, 2023
1 parent 8ee6dc9 commit 07c6585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/macOS/ui/FileProviderSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Page {

property bool showBorder: true
property var controller: FileProviderSettingsController
property var accountUserIdAtHost: AccountUserIdAtHost
property string accountUserIdAtHost: ""

title: qsTr("Virtual files settings")

Expand Down
2 changes: 1 addition & 1 deletion src/gui/macOS/ui/fileprovidersettingscontroller_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ VfsAccountsAction setVfsEnabledForAccount(const QString &userIdAtHost, const boo
const auto settingsViewWidget = new QQuickWidget(Systray::instance()->trayEngine(), parent);
settingsViewWidget->setResizeMode(resizeMode);
settingsViewWidget->setSource(QUrl(fpSettingsQmlPath));
settingsViewWidget->rootContext()->setContextProperty(fpSettingsAccountUserIdAtHostProp, accountUserIdAtHost);
settingsViewWidget->rootObject()->setProperty(fpSettingsAccountUserIdAtHostProp, accountUserIdAtHost);
return settingsViewWidget;
}

Expand Down

0 comments on commit 07c6585

Please sign in to comment.