mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-22 05:34:04 +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;
|
).await;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if text.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let _ = db::history::add_history_item(
|
let _ = db::history::add_history_item(
|
||||||
pool,
|
pool,
|
||||||
HistoryItem::new(ContentType::Text, text, None)
|
HistoryItem::new(ContentType::Text, text, None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue