diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
| commit | 9d381671ec0b1266448eddbf4c4935cdc7d23a9f (patch) | |
| tree | 34e9b4b0296eea8dba03024491934413bcd54083 /src/Configuration.cs | |
| parent | a64627699d4919d389522d92032ce4f05704d313 (diff) | |
docking save/restore; use image surfaces as cache for graphic object instead of backend similar which blink too much
Diffstat (limited to 'src/Configuration.cs')
| -rw-r--r-- | src/Configuration.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Configuration.cs b/src/Configuration.cs index a6328c0a..4acba6af 100644 --- a/src/Configuration.cs +++ b/src/Configuration.cs @@ -29,6 +29,7 @@ using System.Reflection; using System.IO; using System.Collections.Generic; using System.Threading; +using System.Linq; namespace Crow { @@ -102,6 +103,7 @@ namespace Crow } startSavingThread (); } + static Configuration () { string configRoot = @@ -128,6 +130,13 @@ namespace Crow } globalConfig = new Configuration (globalConfigPath); } + + public string[] Names { + get { + return items.Keys.ToArray (); + } + } + void startSavingThread(){ Thread t = new Thread (savingThread); t.IsBackground = true; @@ -139,7 +148,7 @@ namespace Crow save (); isDirty = false; } - Thread.Sleep (1000); + Thread.Sleep (100); } } /// <summary> |