mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-02-25 21:57:21 +03:00
use enabled/disabled instead of enable/disable
This commit is contained in:
parent
c4a221bcff
commit
238a01a9a0
@ -307,7 +307,7 @@ sub set_service_state {
|
||||
|
||||
my $d = $self->{service_gui}->{$sid} || die "no such service '$sid'";
|
||||
|
||||
my $state = $d->{enable_btn}->get_active() ? 'enable' : 'disable';
|
||||
my $state = $d->{enable_btn}->get_active() ? 'enabled' : 'disabled';
|
||||
|
||||
$d = $self->{service_config}->{$sid} || die "no such service '$sid'";
|
||||
|
||||
@ -401,7 +401,7 @@ sub create_service_control {
|
||||
|
||||
$w = Gtk3::Switch->new();
|
||||
$sgrid->attach($w, 1, $row, 1, 1);
|
||||
$w->set_active(1) if $d->{state} eq 'enable';
|
||||
$w->set_active(1) if $d->{state} eq 'enabled';
|
||||
$self->{service_gui}->{$sid}->{enable_btn} = $w;
|
||||
$w->signal_connect('notify::active' => sub {
|
||||
$self->set_service_state($sid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user