aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Service/UserConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Service/UserConfig.php')
-rw-r--r--apps/files/lib/Service/UserConfig.php47
1 files changed, 30 insertions, 17 deletions
diff --git a/apps/files/lib/Service/UserConfig.php b/apps/files/lib/Service/UserConfig.php
index a2f2f1c1d14..4dae198ee55 100644
--- a/apps/files/lib/Service/UserConfig.php
+++ b/apps/files/lib/Service/UserConfig.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -19,47 +20,59 @@ class UserConfig {
'allowed' => [true, false],
],
[
- // Whether to show the "confirm file extension change" warning
- 'key' => 'show_dialog_file_extension',
+ // The view to start the files app in
+ 'key' => 'default_view',
+ 'default' => 'files',
+ 'allowed' => ['files', 'personal'],
+ ],
+ [
+ // Whether to show the folder tree
+ 'key' => 'folder_tree',
'default' => true,
'allowed' => [true, false],
],
[
- // Whether to show the hidden files or not in the files list
- 'key' => 'show_hidden',
+ // Whether to show the files list in grid view or not
+ 'key' => 'grid_view',
'default' => false,
'allowed' => [true, false],
],
[
- // Whether to sort favorites first in the list or not
- 'key' => 'sort_favorites_first',
- 'default' => true,
+ // Whether to show the "confirm file deletion" warning
+ 'key' => 'show_dialog_deletion',
+ 'default' => false,
'allowed' => [true, false],
],
[
- // Whether to sort folders before files in the list or not
- 'key' => 'sort_folders_first',
+ // Whether to show the "confirm file extension change" warning
+ 'key' => 'show_dialog_file_extension',
'default' => true,
'allowed' => [true, false],
],
[
- // Whether to show the files list in grid view or not
- 'key' => 'grid_view',
+ // Whether to show the hidden files or not in the files list
+ 'key' => 'show_hidden',
'default' => false,
'allowed' => [true, false],
],
[
- // Whether to show the folder tree
- 'key' => 'folder_tree',
+ // Whether to show the mime column or not
+ 'key' => 'show_mime_column',
+ 'default' => false,
+ 'allowed' => [true, false],
+ ],
+ [
+ // Whether to sort favorites first in the list or not
+ 'key' => 'sort_favorites_first',
'default' => true,
'allowed' => [true, false],
],
[
- // Whether to show the mime column or not
- 'key' => 'show_mime_column',
- 'default' => false,
+ // Whether to sort folders before files in the list or not
+ 'key' => 'sort_folders_first',
+ 'default' => true,
'allowed' => [true, false],
- ]
+ ],
];
protected ?IUser $user = null;