-
-
Notifications
You must be signed in to change notification settings - Fork 74
Revamp the download settings dialog #777
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
base: main
Are you sure you want to change the base?
Conversation
- Adds option to restart/shutdown pc after installation - Allows limiting the download speed without going to the settings (still needs support for localization)
This reverts commit 635160a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Revamps the download settings dialog to offer enhanced post-install actions and integrated download speed limiting.
- Adds new language strings and UI elements to support post-install behaviours (shutdown, restart, hibernate, do nothing) and a customizable timeout.
- Replaces the old StartAfterInstall flag with a new PostInstallBehaviour enum and updates corresponding configuration and UI code.
- Introduces a new DownloadSettings dialog to simplify download speed limiter adjustments.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
Hi3Helper.Core/Lang/en_US.json | Added new UI strings for post-install behaviour options. |
Hi3Helper.Core/Lang/Locale/LangDialogs.cs | Mapped new language strings in localized dialogs. |
Hi3Helper.Core/Classes/Shared/Region/LauncherConfig.cs | Added a new config property for post-install shutdown timeout (with a spelling inconsistency). |
CollapseLauncher/XAMLs/MainApp/ValueConverters.cs | Added a new converter for time formatting. |
CollapseLauncher/XAMLs/MainApp/Pages/SettingsPage.xaml.cs | Updated settings page to refresh download speed limiter UI. |
CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs | Refactored game start logic to use the new post-install behaviour. |
CollapseLauncher/XAMLs/MainApp/Pages/HomePage.GameManagement.cs | Integrated post-install procedure logic replacing the old flag. |
CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/SimpleDialogs.cs | Updated dialog invocation to use the new DownloadSettings control. |
CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/DownloadSettings.xaml.cs & .xaml | New dialog UI and code-behind for configuring download speed and post-install timeout. |
CollapseLauncher/Classes/Interfaces/IGameInstallManager.cs | Removed the old StartAfterInstall property in favour of PostInstallBehaviour. |
CollapseLauncher/Classes/Interfaces/Class/Enums.cs | Introduced the new PostInstallBehaviour enum. |
CollapseLauncher/Classes/InstallManagement/Base/InstallManagerBase.cs | Extended the install manager base class to support PostInstallBehaviour while retaining legacy StartAfterInstall. |
Comments suppressed due to low confidence (1)
CollapseLauncher/Classes/InstallManagement/Base/InstallManagerBase.cs:161
- Both 'StartAfterInstall' and the new 'PostInstallBehaviour' properties exist. If 'StartAfterInstall' is no longer used, consider deprecating or removing it to prevent confusion.
public virtual bool StartAfterInstall { get; set; }
CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/DownloadSettings.xaml.cs
Dismissed
Show dismissed
Hide dismissed
CollapseLauncher/XAMLs/MainApp/Pages/HomePage.GameManagement.cs
Dismissed
Show dismissed
Hide dismissed
CollapseLauncher/XAMLs/MainApp/Pages/HomePage.GameManagement.cs
Dismissed
Show dismissed
Hide dismissed
|
Main Goal
Adds new options to what behaviour the launcher should have after a successful install or update: shutdown, restart or hibernate. The timeout between the completion of the install and the shutdown/restart can be customized.
(closes #628)
Allows limiting download speed without going to the settings page.
PR Status :
Templates
Changelog Prefixes