Skip to content

Fix: Do not destroy the MainWindow on close when the indicator is enabled#530

Merged
stsdc merged 3 commits intomainfrom
stsdc/fix-window-close
Mar 26, 2026
Merged

Fix: Do not destroy the MainWindow on close when the indicator is enabled#530
stsdc merged 3 commits intomainfrom
stsdc/fix-window-close

Conversation

@stsdc
Copy link
Member

@stsdc stsdc commented Mar 11, 2026

Prevents creating new Timeouts every time a new window is constructed, which results in multiple resources updates per second

@stsdc stsdc marked this pull request as draft March 11, 2026 21:20
@stsdc stsdc force-pushed the stsdc/fix-window-close branch from b80cb17 to 4638a85 Compare March 11, 2026 21:22
@stsdc stsdc marked this pull request as ready for review March 11, 2026 21:24
@stsdc stsdc requested a review from a team March 11, 2026 21:24
@stsdc stsdc changed the title Do not destroy the MainWindow on close when the indicator is enabled Fix: Do not destroy the MainWindow on close when the indicator is enabled Mar 11, 2026
@stsdc stsdc mentioned this pull request Mar 13, 2026
10 tasks
@stsdc stsdc added this to OS 9 Mar 19, 2026
@stsdc stsdc moved this to Needs Review in OS 9 Mar 19, 2026
Copy link
Member

@vjr vjr left a comment

Choose a reason for hiding this comment

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

LGTM except some comments/suggestions but not to block merging this PR.

construct {
title = _("Monitor");

close_request.connect (() => {
Copy link
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.

@stsdc stsdc merged commit f25e8d3 into main Mar 26, 2026
7 checks passed
@stsdc stsdc deleted the stsdc/fix-window-close branch March 26, 2026 15:15
@github-project-automation github-project-automation bot moved this from Needs Review to Done in OS 9 Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants