update file transfer and adjust icon size

This commit is contained in:
csf
2022-09-06 19:08:45 +08:00
parent 82acb6a351
commit 235eb5415e
7 changed files with 76 additions and 58 deletions

View File

@@ -1665,6 +1665,7 @@ pub async fn handle_login_from_ui(
/// Interface for client to send data and commands.
#[async_trait]
pub trait Interface: Send + Clone + 'static + Sized {
/// Send message data to remote peer.
fn send(&self, data: Data);
fn msgbox(&self, msgtype: &str, title: &str, text: &str);
fn handle_login_error(&mut self, err: &str) -> bool;