mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-30 16:51:59 +03:00
Make delegate weak
This commit is contained in:
parent
226bc73c7b
commit
30b5ee7e4c
@ -11,7 +11,7 @@ import RxPack
|
|||||||
import RxSwift
|
import RxSwift
|
||||||
import Tabs
|
import Tabs
|
||||||
|
|
||||||
public protocol NvimViewDelegate {
|
public protocol NvimViewDelegate: AnyObject {
|
||||||
func isMenuItemKeyEquivalent(_: NSEvent) -> Bool
|
func isMenuItemKeyEquivalent(_: NSEvent) -> Bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ public class NvimView: NSView,
|
|||||||
public static let minLinespacing = 0.5.cgf
|
public static let minLinespacing = 0.5.cgf
|
||||||
public static let maxLinespacing = 8.cgf
|
public static let maxLinespacing = 8.cgf
|
||||||
|
|
||||||
public var delegate: NvimViewDelegate?
|
public weak var delegate: NvimViewDelegate?
|
||||||
|
|
||||||
public let usesCustomTabBar: Bool
|
public let usesCustomTabBar: Bool
|
||||||
public let tabBar: TabBar<TabEntry>?
|
public let tabBar: TabBar<TabEntry>?
|
||||||
|
Loading…
Reference in New Issue
Block a user