mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 21:24:05 +02:00
fix: empty history items being added
This was commited on Flight JQ932 :)
This commit is contained in:
parent
bc4c5a6739
commit
46fe44071d
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ pub fn setup<R: Runtime>(app: &AppHandle<R>) {
|
|||
).await;
|
||||
}
|
||||
} else {
|
||||
if text.is_empty() {
|
||||
return;
|
||||
}
|
||||
let _ = db::history::add_history_item(
|
||||
pool,
|
||||
HistoryItem::new(ContentType::Text, text, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue