Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ public class Monitor.MainWindow : Gtk.ApplicationWindow {
construct {
title = _("Monitor");

close_request.connect (() => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the couple of comments I could think about, this PR seems good to merge to me.

It at least fixes for me the need to twice click "show monitor" in panel indicator, now it works everytime first click.

I could not repro perf issue but it could be because I am on a fast desktop PC - I didn't see any issue with window updates (CPU graphs always being smooth) etc.

if (MonitorApp.settings.get_boolean ("indicator-state")) {
debug ("Indicator is enabled, hiding the window instead of closing");
hide ();
return Gdk.EVENT_STOP;
}
debug ("Close the window");
return Gdk.EVENT_PROPAGATE;
});


var resources = new Resources ();

process_view = new ProcessView ();
Expand Down
Loading