Skip to content
Prev Previous commit
Next Next commit
Fix property access
  • Loading branch information
meisenzahl committed Jan 29, 2022
commit a980d6bcdebb7089b0dff365daabb8895b0a0360
8 changes: 5 additions & 3 deletions src/Views/OperatingSystemView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@
*/

public class About.OperatingSystemView : Gtk.Grid {
private SystemUpgrade system_upgrade;

private string support_url;

private Gtk.Grid software_grid;

construct {
system_upgrade = new SystemUpgrade ();

var style_provider = new Gtk.CssProvider ();
style_provider.load_from_resource ("io/elementary/switchboard/system/OperatingSystemView.css");

Expand Down Expand Up @@ -118,7 +122,7 @@ public class About.OperatingSystemView : Gtk.Grid {

var upgrade_revealer = new Gtk.Revealer ();
upgrade_revealer.add (upgrade_button);
upgrade_revealer.reveal_child = SystemUpgrade.system_upgrade_available;
upgrade_revealer.reveal_child = system_upgrade.system_upgrade_available;

var bug_button = new Gtk.Button.with_label (_("Send Feedback"));

Expand Down Expand Up @@ -322,8 +326,6 @@ public class About.OperatingSystemView : Gtk.Grid {
}

private void show_upgrade_dialog () {
var system_upgrade = new SystemUpgrade ();

int seconds_remaining = RESTART_TIMEOUT;

var message_dialog = new Granite.MessageDialog.with_image_from_icon_name (
Expand Down