aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/application.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-11-25 23:23:06 +0100
committerfiaxh <git@lightrise.org>2019-11-26 18:37:23 +0100
commitb03da2af60e109921967fd38a2ba16bfb4df9f5d (patch)
tree60291ef797a7e0e58ee757001c79a8ab77de0fdc /main/src/ui/application.vala
parenta10c82191e2d7afa221f752fb318cd6c1f94e6c4 (diff)
downloaddino-b03da2af60e109921967fd38a2ba16bfb4df9f5d.tar.gz
dino-b03da2af60e109921967fd38a2ba16bfb4df9f5d.zip
Check window width and hight before (re)storing them
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r--main/src/ui/application.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index bff25696..9a154a49 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -11,6 +11,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
public Database db { get; set; }
public Dino.Entities.Settings settings { get; set; }
+ private Config config { get; set; }
public StreamInteractor stream_interactor { get; set; }
public Plugins.Registry plugin_registry { get; set; default = new Plugins.Registry(); }
public SearchPathGenerator? search_path_generator { get; set; }
@@ -30,7 +31,8 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
activate.connect(() => {
if (window == null) {
controller = new UnifiedWindowController(this, stream_interactor, db);
- window = new UnifiedWindow(this, stream_interactor, db);
+ config = new Config(db);
+ window = new UnifiedWindow(this, stream_interactor, db, config);
controller.set_window(window);
if ((get_flags() & ApplicationFlags.IS_SERVICE) == ApplicationFlags.IS_SERVICE) window.delete_event.connect(window.hide_on_delete);