aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/plugin.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-10-28 23:48:07 +0200
committerfiaxh <git@mx.ax.lt>2017-10-31 15:41:45 +0100
commitb9df78e4494879752e9e68dcc5d54e03fffe9467 (patch)
treed1c74fde4aedea42773bc411c557f2184003defa /plugins/http-files/src/plugin.vala
parentd9b91206c0291fa8aa58df572292784a4f8ff878 (diff)
downloaddino-b9df78e4494879752e9e68dcc5d54e03fffe9467.tar.gz
dino-b9df78e4494879752e9e68dcc5d54e03fffe9467.zip
Move DatabaseError handling into Qlite
Diffstat (limited to 'plugins/http-files/src/plugin.vala')
-rw-r--r--plugins/http-files/src/plugin.vala20
1 files changed, 8 insertions, 12 deletions
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() {