context getters

This commit is contained in:
veeso
2021-07-08 15:43:23 +02:00
parent e6b44e1461
commit 37abe596c7
14 changed files with 168 additions and 97 deletions

View File

@@ -720,10 +720,8 @@ impl FileTransferActivity {
Some(props) => {
// Get width
let width: usize = self
.context
.as_ref()
.unwrap()
.store
.context()
.store()
.get_unsigned(super::STORAGE_EXPLORER_WIDTH)
.unwrap_or(256);
let hostname: String = match hostname::get() {
@@ -768,13 +766,11 @@ impl FileTransferActivity {
Some(props) => {
// Get width
let width: usize = self
.context
.as_ref()
.unwrap()
.store
.context()
.store()
.get_unsigned(super::STORAGE_EXPLORER_WIDTH)
.unwrap_or(256);
let params = self.context.as_ref().unwrap().ft_params.as_ref().unwrap();
let params = self.context().ft_params().unwrap();
let hostname: String = format!(
"{}:{} ",
params.address,