From fc98ec366c41cebe3bb42f131b13bc8dd22303fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 16 Sep 2026 15:52:43 -0700 Subject: [PATCH] Fix warnings from adding priority --- src/Views/LogView/LogCell.vala | 3 +-- src/Views/LogView/SystemdLogModel.vala | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Views/LogView/LogCell.vala b/src/Views/LogView/LogCell.vala index a01857048..f2394cd85 100644 --- a/src/Views/LogView/LogCell.vala +++ b/src/Views/LogView/LogCell.vala @@ -6,8 +6,7 @@ public class Monitor.LogCell : Granite.Bin { public enum CellType { ORIGIN, - MESSAGE, - PRIORITY + MESSAGE } public CellType cell_type { get; construct; } diff --git a/src/Views/LogView/SystemdLogModel.vala b/src/Views/LogView/SystemdLogModel.vala index 9e5e6fbea..f0b8b2fa8 100644 --- a/src/Views/LogView/SystemdLogModel.vala +++ b/src/Views/LogView/SystemdLogModel.vala @@ -163,7 +163,7 @@ public class Monitor.SystemdLogModel : GLib.Object, GLib.ListModel, Gtk.SectionM var dt = new DateTime.from_unix_utc ((int64) (time / TimeSpan.SECOND)); - var entry = new SystemdLogEntry (origin, message, dt, (Systemd.Journal.Priority) priority.to_int ()); + var entry = new SystemdLogEntry (origin, message, dt, (Systemd.Journal.Priority) int.parse (priority)); // Filter if we're searching. We drop them and don't add them and use a filter model // because when searching for e.g. a non existent term this would fill up memory *quick*