зеркало из https://github.com/nextcloud/desktop.git
Add domain property to document action view controller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
9bb67ee68d
Коммит
1e34affc01
|
@ -9,6 +9,16 @@ import FileProviderUI
|
|||
import OSLog
|
||||
|
||||
class DocumentActionViewController: FPUIActionExtensionViewController {
|
||||
var domain: NSFileProviderDomain {
|
||||
guard let identifier = extensionContext.domainIdentifier else {
|
||||
fatalError("not expected to be called with default domain")
|
||||
}
|
||||
return NSFileProviderDomain(
|
||||
identifier: NSFileProviderDomainIdentifier(rawValue: identifier.rawValue),
|
||||
displayName: ""
|
||||
)
|
||||
}
|
||||
|
||||
func prepare(childViewController: NSViewController) {
|
||||
addChild(childViewController)
|
||||
view.addSubview(childViewController.view)
|
||||
|
|
Загрузка…
Ссылка в новой задаче