Exemplo n.º 1
0
            public HotkeyBindings Clone()
            {
                var b = new HotkeyBindings();

                foreach (var kv in this)
                {
                    b[kv.Key] = kv.Value;
                }
                return(b);
            }
Exemplo n.º 2
0
        public void StoreValues(ISettingsStore store)
        {
            var bindings = new HotkeyBindings();

            foreach (var rh in _registeredHotkeys)
            {
                bindings.Add(rh.Value.ID, rh.Key);
            }
            foreach (var hk in _hotkeys)
            {
                if (!bindings.ContainsKey(hk.Key))
                {
                    bindings[hk.Key] = hk.Value.DefaultHotkey;
                }
            }
            store.Set("Bindings", bindings);
        }
Exemplo n.º 3
0
 public void ResolveDefaults()
 {
     PathEntries.ResolveWithDefaults();
     HotkeyBindings.ResolveWithDefaults();
     PathManager.RefreshTempPath();
 }
Exemplo n.º 4
0
 public void ResolveDefaults()
 {
     PathEntries.ResolveWithDefaults();
     HotkeyBindings.ResolveWithDefaults();
 }