Store the `Progress` instance weakly
This commit is contained in:
parent
cbc3e53a03
commit
3365c2be40
|
@ -9,7 +9,7 @@ public final class DockProgress {
|
|||
NSApp.dockTile.contentView = $0
|
||||
}
|
||||
|
||||
public static var progressInstance: Progress? {
|
||||
public static weak var progressInstance: Progress? {
|
||||
didSet {
|
||||
guard let progressInstance = progressInstance else {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue