From 4c48bdc07291f55d7320721a5b0a29c092f7daa0 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 11 Mar 2017 01:25:45 +0100 Subject: Improve Plugin API (allow to move encryption into plugin) --- main/src/main.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main/src') diff --git a/main/src/main.vala b/main/src/main.vala index 80f9bea5..21e45bf4 100644 --- a/main/src/main.vala +++ b/main/src/main.vala @@ -5,16 +5,17 @@ namespace Dino { void main(string[] args) { Gtk.init(ref args); - Dino.Ui.Application app = new Dino.Ui.Application(); - PluginLoader loader = new PluginLoader(); + Application app = new Application(); + Plugins.Loader loader = new Plugins.Loader(); foreach(string plugin in new string[]{}) { try { loader.load(plugin, app); - } catch (Dino.PluginError e) { + } catch (Plugins.Error e) { print(@"Error loading plugin $plugin: $(e.message)\n"); } } app.run(args); + loader.shutdown(); } } \ No newline at end of file -- cgit v1.2.3-70-g09d2