Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stsdc committed Jan 6, 2024
1 parent b2119c0 commit 683cb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ public class Monitor.MainWindow : Hdy.ApplicationWindow {
var flatpak_infobar = new Gtk.InfoBar ();
flatpak_infobar.message_type = Gtk.MessageType.WARNING;
flatpak_infobar.revealed = MonitorApp.settings.get_boolean ("flatpak-infobar-state");
var button = new Gtk.Button.with_label("Hide");
var button = new Gtk.Button.with_label ("Hide");
button.margin_start = 20;
button.hexpand = true;
button.halign = Gtk.Align.END;
flatpak_infobar.get_content_area ().add (new Gtk.Label (_("Some of Monitor features are limited by Flatpak environment.")));
flatpak_infobar.get_content_area ().add (new Gtk.LinkButton.with_label ("https://github.com/stsdc/monitor", _("Try native.")));
flatpak_infobar.get_content_area ().add (button);
button.clicked.connect(() => {
button.clicked.connect (() => {
flatpak_infobar.revealed = false;
MonitorApp.settings.set_boolean ("flatpak-infobar-state", false);
});
Expand Down

0 comments on commit 683cb60

Please sign in to comment.