Skip to content

Commit 2c7baf3

Browse files
committed
MainView: init model earlier
1 parent fa8eaae commit 2c7baf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MainView.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public class Bluetooth.MainView : Switchboard.SettingsPage {
2121
}
2222

2323
construct {
24+
device_model = new GLib.ListStore (typeof (Services.Device));
25+
2426
var empty_alert = new Granite.Placeholder (_("No Devices Found")) {
2527
description = _("Please ensure that your devices are visible and ready for pairing.")
2628
};
@@ -55,8 +57,6 @@ public class Bluetooth.MainView : Switchboard.SettingsPage {
5557

5658
child = frame;
5759

58-
device_model = new GLib.ListStore (typeof (Services.Device));
59-
6060
manager = Bluetooth.Services.ObjectManager.get_default ();
6161
if (manager.retrieve_finished) {
6262
complete_setup ();

0 commit comments

Comments
 (0)