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

Проблема: Дублирование открытия ссылок в лаунчере #46

Closed
GamerVII-NET opened this issue Aug 1, 2024 · 1 comment

Comments

@GamerVII-NET
Copy link
Collaborator

Проблема: Дублирование открытия ссылок в лаунчере

Описание

При клике на любую ссылку в лаунчере, будь то переход в личный кабинет, на сайт или другую страницу, ссылки открываются дважды.

Шаги для воспроизведения

  1. Запустить лаунчер.
  2. Кликнуть на любую ссылку, например, "Личный кабинет" или "Сайт".
  3. Наблюдать за поведением браузера.

Ожидаемое поведение

При клике на ссылку должно открываться только одно окно или вкладка с соответствующим URL.

Фактическое поведение

При клике на ссылку открываются два окна или вкладки с одинаковым URL.

Примечания

Необходимо исправить, чтобы каждая ссылка открывалась один раз при клике. Если нужна дополнительная информация, пожалуйста, дайте знать.

GamerVII-NET added a commit that referenced this issue Aug 7, 2024
The `Command.Execute` call within the button click event handler was redundant since the command is already executed elsewhere. This change improves code readability and prevents potential double execution of the command.
@GamerVII-NET
Copy link
Collaborator Author

Проблема исправлена, выйдет в следующем релизе

GamerVII-NET added a commit that referenced this issue Aug 11, 2024
* #46 Remove redundant command execution in GmlButton

The `Command.Execute` call within the button click event handler was redundant since the command is already executed elsewhere. This change improves code readability and prevents potential double execution of the command.

* Handle disk full errors with new localized messages.

Added a new IsDiskFull resource string in multiple languages to display an error message when the disk is full. Updated the SystemService and OverviewPageViewModel to catch IOException and check for disk full errors using the new IsDiskFull method in SystemService.

* Add error handling for game profile initialization

Introduce a new error message "GameProfileError" in resource files. Implement logic to capture and display this error when initializing game profiles, ensuring errors are properly logged and displayed to the user.

* Add placeholder for Sentry Java logging

Commented-out code added as a placeholder for future Sentry logging implementation. This will facilitate capturing Java log4j-related exceptions once the actual logging code is integrated.

* Update submodule link Gml.Client
GamerVII-NET added a commit that referenced this issue Sep 1, 2024
* #46 Remove redundant command execution in GmlButton

The `Command.Execute` call within the button click event handler was redundant since the command is already executed elsewhere. This change improves code readability and prevents potential double execution of the command.

* Handle disk full errors with new localized messages.

Added a new IsDiskFull resource string in multiple languages to display an error message when the disk is full. Updated the SystemService and OverviewPageViewModel to catch IOException and check for disk full errors using the new IsDiskFull method in SystemService.

* Add error handling for game profile initialization

Introduce a new error message "GameProfileError" in resource files. Implement logic to capture and display this error when initializing game profiles, ensuring errors are properly logged and displayed to the user.

* Add placeholder for Sentry Java logging

Commented-out code added as a placeholder for future Sentry logging implementation. This will facilitate capturing Java log4j-related exceptions once the actual logging code is integrated.

* Update submodule link Gml.Client

* Add GameProfileError constant to ResourceKeysDictionary

This new constant will be used to provide an error message for issues related to game profiles. It ensures that error handling for game profiles is more robust and maintainable.

* Update submodule link Gml.Client

* Solving the error for folders that have UTF-8 characters or spaces in the name

* Fixing warnings and updating the license string in Gml.Launcher.csproj to address the NETSDK1206 warning. Also adding RuntimeIdentifiers for faster builds.

---------

Co-authored-by: dirold2 <mr.did199@mail.ru>
GamerVII-NET added a commit that referenced this issue Sep 1, 2024
* #46 Remove redundant command execution in GmlButton

The `Command.Execute` call within the button click event handler was redundant since the command is already executed elsewhere. This change improves code readability and prevents potential double execution of the command.

* Handle disk full errors with new localized messages.

Added a new IsDiskFull resource string in multiple languages to display an error message when the disk is full. Updated the SystemService and OverviewPageViewModel to catch IOException and check for disk full errors using the new IsDiskFull method in SystemService.

* Add error handling for game profile initialization

Introduce a new error message "GameProfileError" in resource files. Implement logic to capture and display this error when initializing game profiles, ensuring errors are properly logged and displayed to the user.

* Add placeholder for Sentry Java logging

Commented-out code added as a placeholder for future Sentry logging implementation. This will facilitate capturing Java log4j-related exceptions once the actual logging code is integrated.

* Update submodule link Gml.Client

* Add GameProfileError constant to ResourceKeysDictionary

This new constant will be used to provide an error message for issues related to game profiles. It ensures that error handling for game profiles is more robust and maintainable.

* Update submodule link Gml.Client

* Solving the error for folders that have UTF-8 characters or spaces in the name

* Fixing warnings and updating the license string in Gml.Launcher.csproj to address the NETSDK1206 warning. Also adding RuntimeIdentifiers for faster builds.

* Add GameProfileError constant to ResourceKeysDictionary

Re-add the GameProfileError constant to ensure error handling for game profiles is defined. This change corrects its previous removal and maintains consistency in the dictionary.

* Log error output from process data receiver

Add a Console.WriteLine statement to log error data from the process. This helps in debugging by providing immediate visibility of any error output that is not filtered by the existing conditions.

* Add SplashScreen view import and update initialization

Importing the SplashScreen view allows the application to display a splash screen during launch. Additionally, updating the OnFrameworkInitializationCompleted method to be asynchronous supports potential future asynchronous operations.

---------

Co-authored-by: dirold2 <mr.did199@mail.ru>
GamerVII-NET added a commit that referenced this issue Sep 1, 2024
* #46 Remove redundant command execution in GmlButton

The `Command.Execute` call within the button click event handler was redundant since the command is already executed elsewhere. This change improves code readability and prevents potential double execution of the command.

* Handle disk full errors with new localized messages.

Added a new IsDiskFull resource string in multiple languages to display an error message when the disk is full. Updated the SystemService and OverviewPageViewModel to catch IOException and check for disk full errors using the new IsDiskFull method in SystemService.

* Add error handling for game profile initialization

Introduce a new error message "GameProfileError" in resource files. Implement logic to capture and display this error when initializing game profiles, ensuring errors are properly logged and displayed to the user.

* Add placeholder for Sentry Java logging

Commented-out code added as a placeholder for future Sentry logging implementation. This will facilitate capturing Java log4j-related exceptions once the actual logging code is integrated.

* Update submodule link Gml.Client

* Add GameProfileError constant to ResourceKeysDictionary

This new constant will be used to provide an error message for issues related to game profiles. It ensures that error handling for game profiles is more robust and maintainable.

* Update submodule link Gml.Client

* Solving the error for folders that have UTF-8 characters or spaces in the name

* Fixing warnings and updating the license string in Gml.Launcher.csproj to address the NETSDK1206 warning. Also adding RuntimeIdentifiers for faster builds.

* Add GameProfileError constant to ResourceKeysDictionary

Re-add the GameProfileError constant to ensure error handling for game profiles is defined. This change corrects its previous removal and maintains consistency in the dictionary.

* Log error output from process data receiver

Add a Console.WriteLine statement to log error data from the process. This helps in debugging by providing immediate visibility of any error output that is not filtered by the existing conditions.

* Add SplashScreen view import and update initialization

Importing the SplashScreen view allows the application to display a splash screen during launch. Additionally, updating the OnFrameworkInitializationCompleted method to be asynchronous supports potential future asynchronous operations.

* Add splash screen on app startup

Imported necessary namespaces and updated OnFrameworkInitializationCompleted to be asynchronous to support splash screen

---------

Co-authored-by: dirold2 <mr.did199@mail.ru>
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

No branches or pull requests

1 participant