Skip to content

Commit 661f379

Browse files
feat: Create InsetGroupedPreferencesPaneController
1 parent 77eceee commit 661f379

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

src/front/macOS/kDrive/Controllers/PreferencesWindow/General/GeneralPreferencesViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import Cocoa
2020
import kDriveCoreUI
2121

22-
class GeneralPreferencesViewController: PreferencePaneController {
22+
class GeneralPreferencesViewController: InsetGroupedPreferencesPaneController {
2323
convenience init() {
2424
self.init(toolbarTitle: SidebarItem.general.title)
2525
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
Infomaniak kDrive - Desktop
3+
Copyright (C) 2023-2025 Infomaniak Network SA
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
import Cocoa
20+
21+
protocol InsetGroupedPreferencesPaneDataSource: AnyObject {
22+
23+
}
24+
25+
open class InsetGroupedPreferencesPaneController: PreferencesPaneController {
26+
27+
28+
29+
}

src/front/macOS/kDrive/Controllers/PreferencesWindow/PreferencePaneController.swift renamed to src/front/macOS/kDrive/Controllers/PreferencesWindow/PreferencesPaneController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import Cocoa
2020
import kDriveCoreUI
2121

22-
open class PreferencePaneController: TitledViewController {
22+
open class PreferencesPaneController: TitledViewController {
2323
var scrollView: NSScrollView!
2424
var stackView: NSStackView!
2525

src/front/macOS/kDrive/Controllers/PreferencesWindow/PreferencesWindowController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ final class PreferencesWindowController: NSWindowController {
2929
defer: false
3030
)
3131

32-
window.title = "!Preferences"
3332
window.isReleasedWhenClosed = true
3433
window.toolbarStyle = .unified
3534
window.center()

0 commit comments

Comments
 (0)