Skip to content

Commit 8cd41b0

Browse files
committed
add preference setting for auto-login
1 parent dd8c33b commit 8cd41b0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

data/darktableconfig.xml.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,13 @@
28552855
<shortdescription>password storage backend to use</shortdescription>
28562856
<longdescription>the storage backend for password storage: auto, none, libsecret, kwallet, apple_keychain, windows_credentials</longdescription>
28572857
</dtconfig>
2858+
<dtconfig prefs="security" section="other">
2859+
<name>plugins/imageio/storage/export/auto_login</name>
2860+
<type>bool</type>
2861+
<default>false</default>
2862+
<shortdescription>auto login to storage server</shortdescription>
2863+
<longdescription>automatically login to last used storage server. this requires that a password storage backend is set.</longdescription>
2864+
</dtconfig>
28582865
<dtconfig>
28592866
<name>plugins/lighttable/export/icctype</name>
28602867
<type>int</type>

src/imageio/storage/piwigo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,8 @@ void gui_init(dt_imageio_module_storage_t *self)
11651165
dt_gui_hbox(dt_ui_label_new(_("filename pattern")), ui->filename_pattern_entry),
11661166
ui->conflict_action);
11671167

1168-
storage_login(self);
1168+
if(dt_conf_get_bool("plugins/imageio/storage/export/auto_login"))
1169+
storage_login(self);
11691170
}
11701171

11711172
void gui_cleanup(dt_imageio_module_storage_t *self)

0 commit comments

Comments
 (0)