From b9df78e4494879752e9e68dcc5d54e03fffe9467 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 28 Oct 2017 23:48:07 +0200 Subject: Move DatabaseError handling into Qlite --- plugins/http-files/src/plugin.vala | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'plugins/http-files/src') diff --git a/plugins/http-files/src/plugin.vala b/plugins/http-files/src/plugin.vala index b1c08d80..1fc0c9fd 100644 --- a/plugins/http-files/src/plugin.vala +++ b/plugins/http-files/src/plugin.vala @@ -9,21 +9,17 @@ public class Plugin : RootInterface, Object { public FileProvider file_provider; public void registered(Dino.Application app) { - try { - this.app = app; - Manager.start(this.app.stream_interactor, app.db); + this.app = app; + Manager.start(this.app.stream_interactor, app.db); - file_provider = new FileProvider(app.stream_interactor, app.db); + file_provider = new FileProvider(app.stream_interactor, app.db); - app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => { - list.add(new UploadStreamModule()); - }); + app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => { + list.add(new UploadStreamModule()); + }); - app.stream_interactor.get_module(FileManager.IDENTITY).add_provider(file_provider); - app.plugin_registry.register_message_display(new FileMessageFilterDisplay(app.db)); - } catch (Error e) { - print(@"Error initializing http-files: $(e.message)\n"); - } + app.stream_interactor.get_module(FileManager.IDENTITY).add_provider(file_provider); + app.plugin_registry.register_message_display(new FileMessageFilterDisplay(app.db)); } public void shutdown() { -- cgit v1.2.3-70-g09d2