feat: initialized popup view for the combined modules (#1084)

This commit is contained in:
Serhiy Mytrovtsiy
2023-02-22 20:17:39 +01:00
parent 03c30606cf
commit 2a6c7b1dcd
7 changed files with 127 additions and 17 deletions

View File

@@ -78,6 +78,7 @@ open class Module: Module_p {
public var menuBar: MenuBar
public var settings: Settings_p? = nil
public let portal: Portal_p?
public var name: String {
config.name
@@ -107,7 +108,8 @@ open class Module: Module_p {
}
}
public init(popup: Popup_p? = nil, settings: Settings_v? = nil) {
public init(popup: Popup_p? = nil, settings: Settings_v? = nil, portal: Portal_p? = nil) {
self.portal = portal
self.config = module_c(in: Bundle(for: type(of: self)).path(forResource: "config", ofType: "plist")!)
self.log = NextLog.shared.copy(category: self.config.name)