Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
megabitsenmzq committed Oct 21, 2021
1 parent 7c1a0ac commit 2f2350d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<key>Notch Simulator Helper.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
<key>Notch Simulator.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
Expand Down
4 changes: 3 additions & 1 deletion Notch Simulator/Notch Simulator/NotchViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ extension NotchViewController {

let showTapeItem = NSMenuItem(title: "Put tape on it!", action: #selector(showTape), keyEquivalent: "")
showTapeItem.state = isTapeOn ? .on : .off
showTapeItem.target = self
if isCameraEnabled {
showTapeItem.target = self
}
moreMenu.addItem(showTapeItem)

let turnOnCameraItem = NSMenuItem(title: "Turn on the camera", action: #selector(turnOnCamera), keyEquivalent: "")
Expand Down

0 comments on commit 2f2350d

Please sign in to comment.