Skip to content

Commit

Permalink
#28 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehlen, David committed Mar 6, 2019
1 parent 8992ec3 commit d01c45b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Capture/Custom Views/RecordingButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import Cocoa
@IBInspectable var outerCircleColor: NSColor = NSColor.white.withAlphaComponent(0.7)
@IBInspectable var innerCircleColor: NSColor = NSColor.red

var isRecording: Bool = false
var isRecording: Bool = false {
didSet {
setNeedsDisplay(self.frame)
}
}

override func draw(_ dirtyRect: NSRect) {
outerCircleColor.setFill()
Expand Down
2 changes: 1 addition & 1 deletion Capture/WindowList/View/WindowListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class WindowListViewController: NSViewController {
}

@objc func stopRecording() {
guard let currentRecorder = currentRecorder else { return }
recordingButton.isRecording = false
guard let currentRecorder = currentRecorder else { return }
cutoutWindow?.orderOut(nil)
NSApplication.shared.activate(ignoringOtherApps: true)
currentRecorder.stop()
Expand Down

0 comments on commit d01c45b

Please sign in to comment.