Permalink
Browse files
bugfix: cannot re-select 'silent' sound option
- Loading branch information...
Showing
with
14 additions
and
9 deletions.
-
+12
−7
Hint/Application/Main/AppDelegate.swift
-
+1
−1
Hint/Info.plist
-
+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() {
|
|
|
|
|
|
@@ -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>
|
|
|
|
|
|
@@ -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