Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
- immediately restart timer when lock timeout updated
- unlink google after encrypting credentials
- upped minor version
  • Loading branch information
someretical committed Jan 11, 2022
1 parent e7ec5e1 commit d7093d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ void MainWindow::exit_diary_to_main_menu(bool const locked)
GoogleWrapper::instance()->upload_diary([this, locked](const td::GWrapperError err) {
InternalManager::instance()->diary_file_changed = false;
GoogleWrapper::instance()->encrypt_credentials();
GoogleWrapper::instance()->google->unlink();
Encryptor::instance()->reset();
InternalManager::instance()->end_busy_mode(__LINE__, __func__, __FILE__);

Expand All @@ -102,6 +103,7 @@ void MainWindow::exit_diary_to_main_menu(bool const locked)
}
else {
GoogleWrapper::instance()->encrypt_credentials();
GoogleWrapper::instance()->google->unlink();
Encryptor::instance()->reset();
}

Expand Down
1 change: 1 addition & 0 deletions src/gui/optionsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ void OptionsMenu::update_lock_timeout()

InternalManager::instance()->settings->setValue("lock_timeout", ms);
InternalManager::instance()->inactive_filter->interval = ms;
InternalManager::instance()->inactive_filter->timer->start();

ui->lock_timeout_text->set_text("Lock timeout updated.");
}
Expand Down
2 changes: 1 addition & 1 deletion text/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.1
2.1.2

0 comments on commit d7093d0

Please sign in to comment.