mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-22 22:04:48 -04:00
New setting: enablin/disabling the automatic reload on changes
This commit is contained in:
parent
95fdefdcc7
commit
06e08557ac
4 changed files with 24 additions and 10 deletions
|
@ -621,7 +621,8 @@ void DatabaseWidget::openDatabase(bool accepted)
|
|||
m_databaseOpenWidget = Q_NULLPTR;
|
||||
delete m_keepass1OpenWidget;
|
||||
m_keepass1OpenWidget = Q_NULLPTR;
|
||||
m_file_watcher.watchFile( m_filename );
|
||||
if (config()->get("AutoReloadOnChange").toBool() )
|
||||
m_file_watcher.watchFile( m_filename );
|
||||
}
|
||||
else {
|
||||
m_file_watcher.stopWatching();
|
||||
|
@ -878,6 +879,9 @@ void DatabaseWidget::databaseModifedExternally()
|
|||
if ( database() == Q_NULLPTR )
|
||||
return;
|
||||
|
||||
if ( ! config()->get("AutoReloadOnChange").toBool() )
|
||||
return;
|
||||
|
||||
KeePass2Reader reader;
|
||||
QFile file(m_filename);
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue