core/tempq: Don't enable all queues by default
Enabling all queues by default, even ones read from disk, is incorrect as it leads to all queues getting reenabled when restarting Ocarina. Fixes #56: Enabled status of temporary queues not saving Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
4fd4f75f0e
commit
d07b7e68ac
|
@ -1,3 +1,8 @@
|
|||
6.4.12-rc:
|
||||
- Don't reenable tempqueues when restarting
|
||||
- Update tooltips on various buttons
|
||||
- Replace pause-after GtkSpinButton with a GtkComboBoxText
|
||||
|
||||
6.4.12:
|
||||
- Control automatic pausing with a GtkComboBox
|
||||
- Move current position slider into the top section
|
||||
|
|
|
@ -15,7 +15,7 @@ static struct queue *__tempq_alloc(struct queue_ops *ops, unsigned int flags)
|
|||
struct queue *queue = g_malloc(sizeof(struct queue));
|
||||
|
||||
tempq_list = g_slist_append(tempq_list, queue);
|
||||
queue_init(queue, flags | Q_ENABLED | Q_SAVE_FLAGS | Q_SAVE_SORT, ops);
|
||||
queue_init(queue, flags | Q_SAVE_FLAGS | Q_SAVE_SORT, ops);
|
||||
return queue;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ void tempq_save(struct queue *queue, enum queue_flags flag)
|
|||
|
||||
struct queue *tempq_alloc(struct queue_ops *ops, unsigned int flags)
|
||||
{
|
||||
struct queue *queue = __tempq_alloc(ops, flags);
|
||||
struct queue *queue = __tempq_alloc(ops, Q_ENABLED | flags);
|
||||
tempq_save(queue, Q_ENABLED);
|
||||
return queue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue