File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ public class AppCenter.ActionStack : Gtk.Box {
129129 }
130130 }
131131
132- action_button. allow_free = true ;
133-
134132 if (stack. get_child_by_name (" buttons" ) != null ) {
135133 stack. visible_child_name = " buttons" ;
136134 }
@@ -150,8 +148,6 @@ public class AppCenter.ActionStack : Gtk.Box {
150148 case AppCenterCore . Package . State . INSTALLED:
151149 action_button_revealer. reveal_child = package. should_pay && updates_view;
152150 open_button_revealer. reveal_child = show_open && package. get_can_launch ();
153-
154- action_button. allow_free = false ;
155151 break ;
156152 case AppCenterCore . Package . State . UPDATE_AVAILABLE:
157153 action_button. free_string = _(" Update" );
Original file line number Diff line number Diff line change @@ -40,18 +40,6 @@ public class AppCenter.Widgets.HumbleButton : Gtk.Button {
4040
4141 public string free_string;
4242
43- public bool _allow_free = true ;
44- public bool allow_free {
45- get {
46- return _allow_free;
47- }
48- set {
49- if (value != _allow_free) {
50- _allow_free = value ;
51- }
52- }
53- }
54-
5543 public bool can_purchase {
5644 set {
5745 if (! value ) {
You can’t perform that action at this time.
0 commit comments