mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-22 05:34:04 +02:00
feat: detect color
This commit is contained in:
parent
345f7e3f09
commit
4ab938a3de
3 changed files with 126 additions and 27 deletions
|
@ -164,6 +164,11 @@ pub fn setup<R: Runtime>(app: &AppHandle<R>) {
|
|||
pool,
|
||||
HistoryItem::new(app_name, ContentType::Code, text, None, app_icon, Some(language))
|
||||
).await;
|
||||
} else if crate::utils::commands::detect_color(&text) {
|
||||
let _ = db::history::add_history_item(
|
||||
pool,
|
||||
HistoryItem::new(app_name, ContentType::Color, text, None, app_icon, None)
|
||||
).await;
|
||||
} else {
|
||||
let _ = db::history::add_history_item(
|
||||
pool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue