mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
[GTKUI] Fix column sort state not saved in Thinclient mode
* In torrentview.stop the listview is cleared however this meant in thinclient mode that listview sort details are empty and overwrites existing data when save_state is then called in torrentview.shutdown.
This commit is contained in:
parent
3dfe6af1ee
commit
a86b6f0f8f
1 changed files with 4 additions and 2 deletions
|
@ -361,13 +361,15 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
"""Stops the torrentview"""
|
"""Stops the torrentview"""
|
||||||
# We need to clear the liststore
|
# Save column state before clearing liststore
|
||||||
|
# so column sort details are correctly saved.
|
||||||
|
self.save_state()
|
||||||
self.liststore.clear()
|
self.liststore.clear()
|
||||||
self.prev_status = {}
|
self.prev_status = {}
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
"""Called when GtkUi is exiting"""
|
"""Called when GtkUi is exiting"""
|
||||||
self.save_state()
|
pass
|
||||||
|
|
||||||
def save_state(self):
|
def save_state(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue