Permalink
Browse files

bugfix: cannot re-select 'silent' sound option

  • Loading branch information...
1 parent 181d408 commit 71c1e0f777fd6704c072c21c7d61a18c4aaaf071 Chris Smith committed Jan 20, 2017
Showing with 14 additions and 9 deletions.
  1. +12 −7 Hint/Application/Main/AppDelegate.swift
  2. +1 −1 Hint/Info.plist
  3. +1 −1 HintLauncher/Info.plist
@@ -162,14 +162,19 @@
func loadSound(_ type: SoundType) {
- guard let loaded = NSSound(soundType: type) else {
- //guard let loaded = Sound(type: type) else {
- // TODO
- return
- }
-
settings.soundType = type
- self.sound = loaded
+
+ if type == .silent {
+ self.sound = nil
+ } else {
+
+ guard let loaded = NSSound(soundType: type) else {
+ // TODO
+ return
+ }
+
+ self.sound = loaded
+ }
}
func notify() {
View
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.4</string>
+ <string>0.4.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
View
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.4</string>
+ <string>0.4.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSBackgroundOnly</key>

0 comments on commit 71c1e0f

Please sign in to comment.