Add desktop notifications for budget threshold crossings

After saving an expense, checks if the category budget reaches 75%,
90%, or 100% thresholds. Sends gio::Notification for each newly
crossed threshold. Tracks sent notifications in database to prevent
duplicates within the same month.
This commit is contained in:
2026-03-02 00:28:43 +02:00
parent 2741df45ad
commit d247c56cfa
3 changed files with 100 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ impl MainWindow {
content_stack.set_transition_type(gtk::StackTransitionType::Crossfade);
// Log view
let log_view = LogView::new(db.clone());
let log_view = LogView::new(db.clone(), app);
let log_scroll = gtk::ScrolledWindow::builder()
.hscrollbar_policy(gtk::PolicyType::Never)
.child(&log_view.container)