Add plugin deinitialization, configuration saving
[WebThing.git] / plugins / Vimish.cs
index 968fae9..4dddb6a 100644 (file)
@@ -28,6 +28,10 @@ public class Vimish : WebThingPlugin {
         wv.KeyPressEvent += WebView_KeyPress;
     }
 
+    public override void Deinit(WebThing wt) {
+        SaveConfig();
+    }
+
     private void Window_KeyPress(object o, KeyPressEventArgs e) {
         if ((Gdk.ModifierType.ControlMask & e.Event.State) != 0) {
             switch(e.Event.Key) {