mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix close button on bood details not returning to book list after navigating directly to book details
This commit is contained in:
parent
342a63244f
commit
d84af98323
@ -66,7 +66,10 @@ def apply_url_state(state):
|
||||
|
||||
apply_url_state.back_from_current = def back_from_current(current_query):
|
||||
q = current_query
|
||||
if q.panel and '^' in q.panel:
|
||||
q = {k:q[k] for k in q}
|
||||
q.panel = q.panel.rpartition('^')[0]
|
||||
if q.panel:
|
||||
if '^' in q.panel:
|
||||
q = {k:q[k] for k in q}
|
||||
q.panel = q.panel.rpartition('^')[0]
|
||||
else:
|
||||
q = {'panel':'book_list'}
|
||||
return q
|
||||
|
Loading…
x
Reference in New Issue
Block a user