From 969e5b55bebc4507d694b0075667c36850ea7025 Mon Sep 17 00:00:00 2001 From: William Hua Date: Sat, 5 Apr 2014 00:26:33 +1300 Subject: Remember to reset the indicator icon on unlock too. --- lib/main.vala | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/main.vala b/lib/main.vala index dde166f6..bcf23209 100644 --- a/lib/main.vala +++ b/lib/main.vala @@ -984,16 +984,7 @@ public class Indicator.Keyboard.Service : Object { } }); ((!) unity_session).unlocked.connect (() => { - if (keyboard_plugin != null) { - var current = source_settings.get_uint ("current"); - - try { - /* Always restore session input source on unlock. */ - ((!) keyboard_plugin).activate_input_source (current); - } catch (IOError error) { - warning ("error: %s", error.message); - } - } + get_active_action ().change_state (source_settings.get_value ("current")); }); } catch (IOError error) { warning ("error: %s", error.message); -- cgit v1.2.3