From a651d4876f775a2b00f88df49ead47557c6cc18e Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 15 Apr 2018 16:28:33 +0200 Subject: Call unload_password every 10th minute when prefs_common.auto_unload_master_password is set. Update the documentation. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 97a4bd0..7c37e96 100644 --- a/src/main.c +++ b/src/main.c @@ -426,6 +426,9 @@ int main(int argc, char *argv[]) if (prefs_common.auto_unload_master_password && master_password_active()) { debug_print("Auto unloading master password\n"); unload_master_password(); + /* call this function every 10th minute in case a reload took place */ + /* TODO: Perhaps a more elegant solution could be developed */ + g_timeout_add(1000 * 60 * 10, unload_master_password, NULL); } #endif -- cgit v1.3