Save the view controllers size.

This commit is contained in:
Damiano Galassi committed 2019-08-07 15:21:43 +02:00
1 parent 106813d5e5
commit 0f122f6242
8 files changed
+90 -44

No files matched your search

+3 -1
View File
@@ -12,7 +12,7 @@ protocol FileImportControllerDelegate : AnyObject {
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
}
final class FileImportController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
private enum ItemType {
case file(MP42FileImporter)
@@ -197,6 +197,8 @@ final class FileImportController: NSViewController, NSTableViewDataSource, NSTab
self.importMetadata = metadata != nil && UserDefaults.standard.bool(forKey: "SBFileImporterImportMetadata")
super.init(nibName: nil, bundle: nil)
self.autosave = "FileImportControllerAutosaveIdentifier"
}
required init?(coder: NSCoder) {