diff options
author | 2010-08-29 21:04:53 +0200 | |
---|---|---|
committer | 2010-08-29 21:05:20 +0200 | |
commit | 408470584ac4bd3aba322a3d6557fccdac24c790 (patch) | |
tree | 4009ec5b32862e0419fbcaf7ed0e5dc57c340104 /plugins/gtkui/mainplaylist.c | |
parent | f61d17119ceb939ec9b840dc39a6a064b11668a8 (diff) |
[gtkui] remember/restore cursor position for each playlist
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 7ad6e0ad..84e62951 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -64,6 +64,9 @@ main_get_cursor (void) { static void main_set_cursor (int cursor) { + char conf[100]; + snprintf (conf, sizeof (conf), "playlist.cursor.%d", deadbeef->plt_get_curr ()); + deadbeef->conf_set_int (conf, cursor); return deadbeef->pl_set_cursor (PL_MAIN, cursor); } |