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

[Windows]Clicking on Snackbar should not open a new instance of the application #19003

Closed
BaY1251 opened this issue Nov 24, 2023 · 5 comments
Closed
Labels
area-core-platform Integration with platforms platform/windows 🪟 t/bug Something isn't working

Comments

@BaY1251
Copy link
Contributor

BaY1251 commented Nov 24, 2023

Description

When clicking on Snackbar, a new instance of the application should not be opened
for example, when using WPF, the notification displayed by calling TaskbarIcon.ShowBalloonTip will not open a new instance

Steps to Reproduce

None

Link to public reproduction project repository

None

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@BaY1251 BaY1251 added the t/bug Something isn't working label Nov 24, 2023
@drasticactions
Copy link
Contributor

This is the default WinUI 3 behavior. WinUI 3 apps are multiple instances by default, allowing you to launch unique instances of the app. There are ways to disable that, and there could be better ways within MAUI to make that more straightforward for how to do it.

@BaY1251
Copy link
Contributor Author

BaY1251 commented Nov 27, 2023

Thank you. This solution is a bit strange , I may use a sample Mutex ?!

@Eilon Eilon added the area-core-platform Integration with platforms label Nov 28, 2023
@mattleibow
Copy link
Member

I created a small sample showing how to make a MAUI app be a single instance: https://github.com/mattleibow/MauiSingleInstanceApp

@mattleibow
Copy link
Member

Duplicate of #9973

@mattleibow mattleibow marked this as a duplicate of #9973 Nov 29, 2023
@BaY1251
Copy link
Contributor Author

BaY1251 commented Nov 30, 2023

Thank you, its really a better way

@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-core-platform Integration with platforms platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants