(history) Write playlist on deinit
This commit is contained in:
parent
753a471c81
commit
83897fea1c
|
@ -1245,7 +1245,10 @@ bool event_command(enum event_command cmd)
|
||||||
break;
|
break;
|
||||||
case EVENT_CMD_HISTORY_DEINIT:
|
case EVENT_CMD_HISTORY_DEINIT:
|
||||||
if (g_defaults.history)
|
if (g_defaults.history)
|
||||||
|
{
|
||||||
|
content_playlist_write_file(g_defaults.history);
|
||||||
content_playlist_free(g_defaults.history);
|
content_playlist_free(g_defaults.history);
|
||||||
|
}
|
||||||
g_defaults.history = NULL;
|
g_defaults.history = NULL;
|
||||||
break;
|
break;
|
||||||
case EVENT_CMD_HISTORY_INIT:
|
case EVENT_CMD_HISTORY_INIT:
|
||||||
|
|
Loading…
Reference in New Issue