Skip to content

Commit

Permalink
dialog: fixed saving dialogs on shutdown that are already loaded at s…
Browse files Browse the repository at this point in the history
…tartup when using db_mode 3

- The dialogs that loaded at startup are not saved in DB on shutdown, and so not loaded at restart,
  fixes issue #3669
  • Loading branch information
Den4t authored and miconda committed Dec 28, 2023
1 parent c523783 commit 2d00ce5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/dialog/dlg_db_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ int load_dialog_info_from_db(
get_ticks());

dlg->dflags = 0;
if(mode == 0 && dlg_db_mode == DB_MODE_SHUTDOWN) {
dlg->dflags |= DLG_FLAG_NEW;
}

if(mode != 0) {
if(loaded_extra < DLG_MAX_DB_LOAD_EXTRA) {
Expand Down

0 comments on commit 2d00ce5

Please sign in to comment.