Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't allocate useless resources in single instance mode #389

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

tsujan
Copy link
Member

@tsujan tsujan commented Feb 21, 2025

In the single instance mode, the code initialized a window with its modules and made a useless signal-slot connection if screengrab was called while another instance was already running. Of course, they were all deleted instantly.

The patch does the initialization only for the main instance.

In the single instance mode, the code initialized a window with its modules and made a useless signal-slot connection if screengrab was called while another instance was already running. Of course, they were all deleted instantly.

The patch does the initialization only for the main instance.
@tsujan tsujan requested a review from isf63 February 21, 2025 02:16
@tsujan
Copy link
Member Author

tsujan commented Feb 21, 2025

@isf63
Since you use X11, could you please do a quick test to see that no functionality has changed?

@isf63
Copy link

isf63 commented Feb 24, 2025

Note: I do not use Screengrab as LXImage-Qt screenshot is fine for me.

The multiple instances toggle indeed is wonky, ...

The functionality itself remains the same on X11 as far as I can tell.

@tsujan
Copy link
Member Author

tsujan commented Feb 24, 2025

The multiple instances toggle indeed is wonky, ...

It has no real use, but it works fine here, perhaps because I've applied another patch, which will be my next PR.

@tsujan tsujan merged commit aba02bf into master Feb 24, 2025
@tsujan tsujan deleted the single_instance branch February 24, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants