Skip to content

Commit

Permalink
Fix Merzlya display (PR rakshasa#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvucBmM0 committed Aug 6, 2016
1 parent 51c5190 commit a194da0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/element_download_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ ElementDownloadList::receive_change_view(const std::string& name) {

void
ElementDownloadList::toggle_layout() {
rpc::call_command("download.list.layout.set", (rpc::call_command_value("download.list.layout") + 1)%2);
const std::string layout_name = rpc::call_command_string("ui.torrent_list.layout");

if (layout_name == "full") {
rpc::call_command("ui.torrent_list.layout.set", "compact");
} else if (layout_name == "compact") {
rpc::call_command("ui.torrent_list.layout.set", "full");
}
}
}

0 comments on commit a194da0

Please sign in to comment.