projects
/
WebThing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add plugin deinitialization, configuration saving
[WebThing.git]
/
plugins
/
Vimish.cs
diff --git
a/plugins/Vimish.cs
b/plugins/Vimish.cs
index
968fae9
..
4dddb6a
100644
(file)
--- a/
plugins/Vimish.cs
+++ b/
plugins/Vimish.cs
@@
-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) {