diff options
Diffstat (limited to 'lib/App/Raps2.pm')
-rw-r--r-- | lib/App/Raps2.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm index d173adc..897e62e 100644 --- a/lib/App/Raps2.pm +++ b/lib/App/Raps2.pm @@ -96,8 +96,8 @@ sub create_config { my $cost = $self->{master_cost} = $self->{default}{cost} // 12; - my $pass = $self->{default}{master_password} - // $self->ui->read_pw( 'Master Password', 1 ); + my $pass = $self->{default}{master_password} // $self->ui->read_pw( + 'Running for the first time. Please choose a master password', 1 ); $self->{pass} = App::Raps2::Password->new( cost => $self->{master_cost}, @@ -149,8 +149,8 @@ sub load_defaults { my $cfg = Config::Tiny->read( $self->{xdg_conf} . '/defaults' ); - $self->{default}{cost} = $cfg->{_}->{cost}; - $self->{default}{pwgen_cmd} = $cfg->{_}->{pwgen_cmd}; + $self->{default}{cost} //= $cfg->{_}->{cost}; + $self->{default}{pwgen_cmd} //= $cfg->{_}->{pwgen_cmd}; return; } |