summaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App')
-rwxr-xr-xlib/App/Dthumb.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/Dthumb.pm b/lib/App/Dthumb.pm
index 20dd983..b3aa1cf 100755
--- a/lib/App/Dthumb.pm
+++ b/lib/App/Dthumb.pm
@@ -119,8 +119,8 @@ sub new {
$conf{dir_data} //= '.dthumb';
# helpers to directly pass GetOptions results
- $conf{lightbox} //= !$conf{'no-lightbox'};
- $conf{names} //= !$conf{'no-names'};
+ $conf{lightbox} //= ( $conf{'no-lightbox'} ? 0 : 1 );
+ $conf{names} //= ( $conf{'no-names'} ? 0 : 1 );
$ref->{config} = \%conf;