Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 47 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "talon-gui"
version = "1.2.0"
version = "1.3.0"
edition = "2024"
authors = ["TheRustyPickle <rusty.pickle94@gmail.com>"]
readme = "README.md"
Expand Down Expand Up @@ -28,11 +28,11 @@ grammers-crypto = "=0.7.0"
grammers-tl-gen = "=0.7.0"
grammers-tl-types = "=0.7.0"
grammers-mtsender = "=0.7.0"
tokio = { version = "1.47.0", features = ["rt-multi-thread"] }
tokio = { version = "1.47.1", features = ["rt-multi-thread"] }
log = "0.4.27"
pretty_env_logger = "0.5.0"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.141"
serde_json = "1.0.142"
dirs = "6.0.0"
open = "5.3.2"
reqwest = { version = "0.12.22", features = ["json"] }
Expand All @@ -46,7 +46,7 @@ rayon = "1.10.0"
csv = "1.3.1"
strum = "0.27.2"
strum_macros = "0.27.2"
egui-selectable-table = "0.3.0"
egui-selectable-table = { version = "0.4.1", features = ["fuzzy-matching"] }
nucleo-matcher = "0.3.1"

# The profile that 'cargo dist' will build with
Expand Down
4 changes: 2 additions & 2 deletions src/ui_components/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,11 @@ impl MainWindow {
&mut self.counter.counts[ongoing]
}

pub fn chart_all(&mut self) -> IterMut<ChartsData> {
pub fn chart_all(&mut self) -> IterMut<'_, ChartsData> {
self.chart.iter_mut()
}

pub fn table_all(&mut self) -> IterMut<UserTableData> {
pub fn table_all(&mut self) -> IterMut<'_, UserTableData> {
self.table.iter_mut()
}
}
32 changes: 16 additions & 16 deletions src/ui_components/processor/date_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ impl DatePickerHandler {
}
/// Verify whether the current From and To dates have changed
pub fn check_date_change(&mut self) -> bool {
if let Some(d) = self.last_from {
if d != self.from {
if self.from > self.to {
self.from = self.to;
}

self.last_from = Some(self.from);
return true;
if let Some(d) = self.last_from
&& d != self.from
{
if self.from > self.to {
self.from = self.to;
}
}
if let Some(d) = self.last_to {
if d != self.to {
if self.to < self.from {
self.to = self.from;
}

self.last_to = Some(self.to);
return true;
self.last_from = Some(self.from);
return true;
}
if let Some(d) = self.last_to
&& d != self.to
{
if self.to < self.from {
self.to = self.from;
}

self.last_to = Some(self.to);
return true;
}
false
}
Expand Down
8 changes: 4 additions & 4 deletions src/ui_components/processor/parsed_chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ impl ParsedChat {
}

pub fn set_end_point(&mut self, point: i32) -> bool {
if let Some(start) = self.start_point {
if point >= start {
return false;
}
if let Some(start) = self.start_point
&& point >= start
{
return false;
}
self.end_point = Some(point);
true
Expand Down
Loading