new version with all the other improvements
This commit is contained in:
parent
bdc5382aa3
commit
fc35758b0a
3 changed files with 8 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
||||||
[package]
|
[package]
|
||||||
name = "jocalsend"
|
name = "jocalsend"
|
||||||
# 1.61803398874989484
|
# 1.61803398874989484
|
||||||
#-----^
|
#------^
|
||||||
version = "1.6.18"
|
version = "1.6.180"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Joe Ardent <code@ardent.nebcorp.com>"]
|
authors = ["Joe Ardent <code@ardent.nebcorp.com>"]
|
||||||
keywords = ["p2p", "localsend", "tui", "linux"]
|
keywords = ["p2p", "localsend", "tui", "linux"]
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.618
|
1.6180
|
||||||
|
|
|
@ -17,6 +17,7 @@ pub mod widgets;
|
||||||
|
|
||||||
mod file_finder;
|
mod file_finder;
|
||||||
use file_finder::FileFinder;
|
use file_finder::FileFinder;
|
||||||
|
|
||||||
mod handle;
|
mod handle;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
|
@ -84,8 +85,8 @@ impl App {
|
||||||
|
|
||||||
pub async fn handle_events(&mut self) -> Result<()> {
|
pub async fn handle_events(&mut self) -> Result<()> {
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
event = self.terminal_events.next().fuse() => {
|
terminal_event = self.terminal_events.next().fuse() => {
|
||||||
if let Some(Ok(evt)) = event {
|
if let Some(Ok(evt)) = terminal_event {
|
||||||
match evt {
|
match evt {
|
||||||
Event::Key(key)
|
Event::Key(key)
|
||||||
if key.kind == KeyEventKind::Press
|
if key.kind == KeyEventKind::Press
|
||||||
|
@ -96,8 +97,8 @@ impl App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transfer_event = self.jocal_event_rx.recv().fuse() => {
|
jocal_event = self.jocal_event_rx.recv().fuse() => {
|
||||||
if let Some(event) = transfer_event {
|
if let Some(event) = jocal_event {
|
||||||
log::trace!("got JocalEvent {event:?}");
|
log::trace!("got JocalEvent {event:?}");
|
||||||
match event {
|
match event {
|
||||||
JocalEvent::ReceiveRequest { id, request } => {
|
JocalEvent::ReceiveRequest { id, request } => {
|
||||||
|
|
Loading…
Reference in a new issue