Rename `.progress` to `progressInstance` for clarity (#8)
This commit is contained in:
parent
1eb3fbfdb9
commit
9918da972d
|
@ -9,10 +9,10 @@ public final class DockProgress {
|
|||
NSApp.dockTile.contentView = $0
|
||||
}
|
||||
|
||||
public static var progress: Progress? {
|
||||
public static var progressInstance: Progress? {
|
||||
didSet {
|
||||
if let progress = progress {
|
||||
progressObserver = progress.observe(\.fractionCompleted) { sender, _ in
|
||||
if let progressInstance = progressInstance {
|
||||
progressObserver = progressInstance.observe(\.fractionCompleted) { sender, _ in
|
||||
progressValue = sender.fractionCompleted
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue