mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Properly set/restore visibility when torrent is/is not "compact".
This commit is contained in:
parent
5bffa3757d
commit
b512a664c6
1 changed files with 8 additions and 2 deletions
|
@ -171,14 +171,20 @@ class OptionsTab(Tab):
|
|||
|
||||
if status["compact"]:
|
||||
self.chk_prioritize_first_last.set_sensitive(False)
|
||||
self.chk_prioritize_first_last.hide()
|
||||
if self.chk_sequential_download.get_property("visible"):
|
||||
self.chk_prioritize_first_last.hide()
|
||||
self.chk_sequential_download.set_sensitive(False)
|
||||
self.chk_sequential_download.hide()
|
||||
if self.chk_sequential_download.get_property("visible"):
|
||||
self.chk_sequential_download.hide()
|
||||
else:
|
||||
if status["prioritize_first_last"] != self.prev_status["prioritize_first_last"]:
|
||||
self.chk_prioritize_first_last.set_active(status["prioritize_first_last"])
|
||||
if not self.chk_prioritize_first_last.get_property("visible"):
|
||||
self.chk_prioritize_first_last.show()
|
||||
if status["sequential_download"] != self.prev_status["sequential_download"]:
|
||||
self.chk_sequential_download.set_active(status["sequential_download"])
|
||||
if not self.chk_sequential_download.get_property("visible"):
|
||||
self.chk_sequential_download.show()
|
||||
|
||||
|
||||
if self.button_apply.is_sensitive():
|
||||
|
|
Loading…
Add table
Reference in a new issue