Skip to content

Commit 6190dd9

Browse files
authored
Merge pull request #30 from manexim/develop
Release version 0.4.1
2 parents cbb2afa + d8ddca3 commit 6190dd9

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed

data/com.github.manexim.home.appdata.xml.in

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,29 @@
2121
<binary>com.github.manexim.home</binary>
2222
</provides>
2323
​<releases>
24+
<release date="2019-08-07" version="0.4.1">
25+
<description>
26+
<p>New:</p>
27+
<ul>
28+
</ul>
29+
<p>Improved:</p>
30+
<ul>
31+
</ul>
32+
<p>Fixed:</p>
33+
<ul>
34+
<li>Show loading page if no device is found</li>
35+
</ul>
36+
<p>Translations:</p>
37+
<ul>
38+
<li>Russian (by camellan)</li>
39+
<li>French (by NathanBnm)</li>
40+
<li>German (by meisenzahl)</li>
41+
<li>Japanese (by ryonakano)</li>
42+
<li>Portuguese (by aimproxy)</li>
43+
<li>Polish (by oskarkunik)</li>
44+
</ul>
45+
</description>
46+
</release>
2447
<release date="2019-08-04" version="0.4.0">
2548
<description>
2649
<p>New:</p>

debian/changelog

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
com.github.manexim.home (0.4.1) bionic; urgency=medium
2+
3+
[NEW]
4+
[IMPROVED]
5+
[FIXED]
6+
* Show loading page if no device is found
7+
[TRANSLATIONS]
8+
* Russian (by camellan)
9+
* French (by NathanBnm)
10+
* German (by meisenzahl)
11+
* Japanese (by ryonakano)
12+
* Portuguese (by aimproxy)
13+
* Polish (by oskarkunik)
14+
15+
-- Marius Meisenzahl <[email protected]> Wed, 07 Aug 2019 06:56:37 +0200
16+
117
com.github.manexim.home (0.4.0) bionic; urgency=medium
218

319
[NEW]

src/config/Constants.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ namespace Config {
2323
public const string APP_ID = "com.github.manexim.home";
2424
public const string APP_AUTHOR = "Manexim";
2525
public const string APP_NAME = "Home";
26-
public const string APP_VERSION = "0.4.0";
26+
public const string APP_VERSION = "0.4.1";
2727
}

src/views/Overview.vala

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public class Views.Overview : Gtk.ScrolledWindow {
2727
grid.margin = 12;
2828
add (grid);
2929

30+
var loading_revealer = new Gtk.Revealer ();
31+
loading_revealer.add (new Pages.LoadingPage ());
32+
loading_revealer.reveal_child = true;
33+
34+
grid.attach (loading_revealer, 0, 1, 1, 1);
35+
3036
var devices_label = new Gtk.Label (_("Devices"));
3137
devices_label.get_style_context ().add_class (Granite.STYLE_CLASS_H4_LABEL);
3238
devices_label.xalign = 0;
@@ -43,10 +49,14 @@ public class Views.Overview : Gtk.ScrolledWindow {
4349
var devices_revealer = new Gtk.Revealer ();
4450
devices_revealer.add (devices_grid);
4551

46-
grid.attach (devices_revealer, 0, 0, 1, 1);
52+
grid.attach (devices_revealer, 0, 1, 1, 1);
4753

4854
devices_controller = Controllers.DevicesController.instance;
4955
devices_controller.on_new_device.connect ((device) => {
56+
if (loading_revealer.child_revealed) {
57+
loading_revealer.reveal_child = false;
58+
}
59+
5060
devices_carousel.add_thing (device);
5161
devices_revealer.reveal_child = true;
5262
});
@@ -78,10 +88,14 @@ public class Views.Overview : Gtk.ScrolledWindow {
7888
var hubs_revealer = new Gtk.Revealer ();
7989
hubs_revealer.add (hubs_grid);
8090

81-
grid.attach (hubs_revealer, 0, 1, 1, 1);
91+
grid.attach (hubs_revealer, 0, 2, 1, 1);
8292

8393
var philipsHueService = Philips.Hue.Service.instance;
8494
philipsHueService.on_new_bridge.connect ((bridge) => {
95+
if (loading_revealer.child_revealed) {
96+
loading_revealer.reveal_child = false;
97+
}
98+
8599
hubs_carousel.add_thing (bridge);
86100
hubs_revealer.reveal_child = true;
87101
});

0 commit comments

Comments
 (0)