Desktop state persistence
This commit is contained in:
parent
d258a9afe2
commit
53868ad45e
7 changed files with 171 additions and 79 deletions
|
|
@ -40,6 +40,10 @@ impl Api {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn session(&self) -> &Arc<Session> {
|
||||
&self.session
|
||||
}
|
||||
|
||||
pub fn mgr_handle(&self, idx: TorrentId) -> Result<ManagedTorrentHandle> {
|
||||
self.session
|
||||
.get(idx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue