mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
Added merzlya's torrent status display changes.
This commit is contained in:
@@ -99,6 +99,8 @@ ElementDownloadList::ElementDownloadList() :
|
||||
|
||||
m_bindings[KEY_UP] = m_bindings['P' - '@'] = std::bind(&ElementDownloadList::receive_prev, this);
|
||||
m_bindings[KEY_DOWN] = m_bindings['N' - '@'] = std::bind(&ElementDownloadList::receive_next, this);
|
||||
|
||||
m_bindings['L'] = std::bind(&ElementDownloadList::toggle_layout, this);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -221,4 +223,8 @@ ElementDownloadList::receive_change_view(const std::string& name) {
|
||||
set_view(*itr);
|
||||
}
|
||||
|
||||
void
|
||||
ElementDownloadList::toggle_layout() {
|
||||
rpc::call_command("download.list.layout.set", (rpc::call_command_value("download.list.layout") + 1)%2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +77,8 @@ public:
|
||||
|
||||
void receive_change_view(const std::string& name);
|
||||
|
||||
void toggle_layout();
|
||||
|
||||
private:
|
||||
WDownloadList* m_window;
|
||||
core::View* m_view;
|
||||
|
||||
Reference in New Issue
Block a user