diff --git a/imports/NeoChat/Settings/AccountEditorPage.qml b/imports/NeoChat/Settings/AccountEditorPage.qml index 564a9f953..d8317502e 100644 --- a/imports/NeoChat/Settings/AccountEditorPage.qml +++ b/imports/NeoChat/Settings/AccountEditorPage.qml @@ -127,4 +127,11 @@ Kirigami.ScrollablePage { onClicked: root.closeDialog(); } } + Component { + id: openFileDialog + + OpenFileDialog { + folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation) + } + } } diff --git a/imports/NeoChat/Settings/AccountsPage.qml b/imports/NeoChat/Settings/AccountsPage.qml index 6526e98e6..98285ac2c 100644 --- a/imports/NeoChat/Settings/AccountsPage.qml +++ b/imports/NeoChat/Settings/AccountsPage.qml @@ -102,12 +102,4 @@ Kirigami.ScrollablePage { } } } - - property Component openFileDialog: Component { - id: openFileDialog - - OpenFileDialog { - folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation) - } - } }