Skip to content

Commit

Permalink
More straightforward revealer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jan 22, 2024
1 parent 7e2458d commit d2595f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Views/OperatingSystemView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ public class About.OperatingSystemView : Gtk.Box {
return;
}

update_button_revealer.reveal_child = false;
update_button_revealer.reveal_child = current_state.state == AVAILABLE;
cancel_button_revealer.reveal_child = current_state.state == DOWNLOADING;

switch (current_state.state) {
case UP_TO_DATE:
Expand All @@ -358,7 +359,6 @@ public class About.OperatingSystemView : Gtk.Box {
case AVAILABLE:
updates_image.icon_name = "software-update-available";
updates_title.label = _("Updates Available");
update_button_revealer.reveal_child = true;
check_button.sensitive = true;

try {
Expand All @@ -379,7 +379,6 @@ public class About.OperatingSystemView : Gtk.Box {
updates_image.icon_name = "browser-download";
updates_title.label = _("Downloading Updates");
updates_description.label = current_state.message;
cancel_button_revealer.reveal_child = true;
check_button.sensitive = false;
break;
case RESTART_REQUIRED:
Expand Down

0 comments on commit d2595f6

Please sign in to comment.