X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FVimish.cs;fp=plugins%2FVimish.cs;h=65490f8043ffcc8937777d83264ca8527fa59a8c;hb=2740ef26aaf53ac138efffe5f7761dce67e57414;hp=27543eeadb0f15569eaefe7cb1c34f1150a9633b;hpb=fc831a2ef0ae342cc73dee301e051bcfbbbeb82c;p=WebThing.git diff --git a/plugins/Vimish.cs b/plugins/Vimish.cs index 27543ee..65490f8 100644 --- a/plugins/Vimish.cs +++ b/plugins/Vimish.cs @@ -28,10 +28,6 @@ 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) { @@ -139,6 +135,9 @@ public class Vimish : WebThingPlugin { Options[args[1]] = args[2]; ApplyOptions(); break; + case "save": + SaveConfig(); + break; default: bool found; if (args.Length > 1) {