Skip to content

Commit

Permalink
Migrates to relm4
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Dec 16, 2024
1 parent 02a8329 commit 916ab25
Show file tree
Hide file tree
Showing 19 changed files with 1,812 additions and 2,092 deletions.
652 changes: 355 additions & 297 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@ rust-version = "1.80"

[dependencies]
dotenvy = "0.15"
gtk = "0.16"
human-panic = "2.0"
notify = "7.0"
pulldown-cmark = "0.12"
rand = "^0.8"
regex = "^1.0"
relm = "0.24"
relm-derive = "0.24"
rand = "0.8"
regex = "1.0"
relm4 = "0.9"
relm4-components = "0.9"
xdg = "2.1"

[dependencies.chrono]
version = "0.4"
default-features = false

[dependencies.gtk]
package = "gtk4"
version = "0.9"
features = ["v4_12"]

[dependencies.log]
version = "^0.4"
version = "0.4"
features = ["std"]

[dependencies.todo-txt]
Expand Down
2 changes: 2 additions & 0 deletions src/application/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ pub mod tasks {
TASKS.read().expect("Unable to rlock tasks").clone()
}

/*
pub fn add(text: &str) -> Result<(), String> {
let mut tasks = TASKS.write().expect("Unable to wlock tasks");
(*tasks).add(text)
}
*/

pub fn replace(new: List) {
let mut tasks = TASKS.write().expect("Unable to wlock tasks");
Expand Down
Loading

0 comments on commit 916ab25

Please sign in to comment.