Fix hotkey assignment

This commit is contained in:
Julian Ospald 2017-07-19 23:46:00 +02:00
parent 8cc453e6cd
commit 910baff12a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -105,7 +105,7 @@ where
let (m_unmute_key, mute_err) =
new_hotkey(&hotkey_prefs.mute_unmute_key);
if let Some(key) = m_unmute_key {
self.up_key = Some(key);
self.mute_key = Some(key);
}
/* Setup volume uphotkey */
@ -117,7 +117,7 @@ where
/* Setup volume down hotkey */
let (m_down_key, down_err) = new_hotkey(&hotkey_prefs.vol_down_key);
if let Some(key) = m_down_key {
self.up_key = Some(key);
self.down_key = Some(key);
}
if mute_err || up_err || down_err {