@ -11,4 +11,4 @@ Keywords=Gnome;GTK;ntfy;
|
||||
Icon=@icon@
|
||||
StartupNotify=true
|
||||
X-GNOME-UsesNotifications=true
|
||||
X-Purism-FormFactor=Workstation;Mobile
|
||||
X-Purism-FormFactor=Workstation;Mobile;
|
||||
|
||||
@ -2,7 +2,7 @@ use std::io::Read;
|
||||
|
||||
use adw::prelude::*;
|
||||
use adw::subclass::prelude::*;
|
||||
use chrono::NaiveDateTime;
|
||||
use chrono::{Local, TimeZone};
|
||||
use gtk::{gdk, gio, glib};
|
||||
use ntfy_daemon::models;
|
||||
use tracing::error;
|
||||
@ -50,7 +50,9 @@ impl MessageRow {
|
||||
|
||||
let time = gtk::Label::builder()
|
||||
.label(
|
||||
&NaiveDateTime::from_timestamp_opt(msg.time as i64, 0)
|
||||
&Local
|
||||
.timestamp_opt(msg.time as i64, 0)
|
||||
.earliest()
|
||||
.map(|time| time.format("%Y-%m-%d %H:%M:%S").to_string())
|
||||
.unwrap_or_default(),
|
||||
)
|
||||
|
||||
@ -316,7 +316,7 @@ impl NotifyWindow {
|
||||
});
|
||||
|
||||
let this = self.clone();
|
||||
imp.subscription_list.connect_row_selected(move |_, _row| {
|
||||
imp.subscription_list.connect_row_activated(move |_, _row| {
|
||||
this.selected_subscription_changed(this.selected_subscription().as_ref());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user