diff options
author | fiaxh <git@lightrise.org> | 2019-11-25 23:23:06 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-11-26 18:37:23 +0100 |
commit | b03da2af60e109921967fd38a2ba16bfb4df9f5d (patch) | |
tree | 60291ef797a7e0e58ee757001c79a8ab77de0fdc /main/src/ui/application.vala | |
parent | a10c82191e2d7afa221f752fb318cd6c1f94e6c4 (diff) | |
download | dino-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.vala | 4 |
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); |