Skip to content

Commit 3260e8e

Browse files
authored
Preview 1.82.17 Release (#684)
# What's new ? - 1.82.17 - **[Fix]** Regex calculation timed out, by @neon-nyan - **[Imp]** Optimize CombineUrlFromString function, by @neon-nyan - Up to 58% faster while using 75% less memory. - [Read more](CollapseLauncher/Hi3Helper.EncTool@2834b5d#commitcomment-152132480) - **[New]** Confirm before doing forced launcher update, by @neon-nyan - **[Fix]** Retry game property loading if it fails, by @neon-nyan - **[Imp]** Update dependencies, by @bagusnl - Win2D 1.3.1 -> 1.3.2 - Sentry 5.0.1 -> 5.1.0 - **[New]** Prevent user to close launcher when critical operation is in progress, by @bagusnl - **[Fix]** Taskbar progress does not disappear after game installation, by @shatyuka - **[Fix]** Keyboard shortcut that depends on game property (e.g. open Screenshot button) not working, by @gablm - **[Fix]** Local notification data not saved, by @gablm - **[Imp]** Bring window to the top before closing launcher, by @neon-nyan - **[New]** User feedback form on exception dialog, by @neon-nyan & @bagusnl - User now can fill a feedback form telling us what happened when an Exception dialog is raised - This feature (currently) **requires** error collection to be enabled and working (able to connect to Sentry's server) - [Read more](#683) <details> <summary>Changelog Prefixes</summary> ``` **[New]** **[Imp]** **[Fix]** **[Loc]** **[Doc]** ``` </details>
2 parents 9fcf904 + 73535e7 commit 3260e8e

File tree

107 files changed

+7068
-4933
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+7068
-4933
lines changed

.github/workflows/vt-scan-releases.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
update_release_body: true
1616
github_token: ${{ secrets.GITHUB_TOKEN }}
1717
files: |
18-
*.exe
18+
^.*\.[eE][xX][eE]$
1919
2020
- name: VirusTotal Scan Archive
2121
uses: crazy-max/ghaction-virustotal@v4
@@ -24,4 +24,4 @@ jobs:
2424
update_release_body: true
2525
github_token: ${{ secrets.GITHUB_TOKEN }}
2626
files: |
27-
*.7z
27+
^.*\.[7zZ]$

CollapseLauncher/App.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/ImageEx/ImageEx.xaml" />
2929
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/CommunityToolkit.Labs/DataTable/DataColumn.xaml" />
3030
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/CommunityToolkit.Labs/MarkdownTextBlock/MarkdownTextBlock.xaml" />
31+
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/UserFeedbackDialog/UserFeedbackDialog.xaml" />
3132
<ResourceDictionary>
3233
<ResourceDictionary.ThemeDictionaries>
3334
<ResourceDictionary x:Key="Default">
23.5 KB
Loading
20.9 KB
Loading
21.2 KB
Loading
24.4 KB
Loading

CollapseLauncher/Classes/CachesManagement/Honkai/Fetch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private async Task BuildGameRepoURL(DownloadClient downloadClient, CancellationT
135135

136136
// Get the asset index properties
137137
string baseURL = string.Format(GameRepoURL!, type.ToString().ToLowerInvariant());
138-
string assetIndexURL = string.Format(CombineURLFromString(baseURL, "{0}Version.unity3d")!,
138+
string assetIndexURL = string.Format(CombineURLFromString(baseURL, "{0}Version.unity3d"),
139139
type == CacheAssetType.Data ? "Data" : "Resource");
140140

141141
#if DEBUG

CollapseLauncher/Classes/EventsManagement/BackgroundActivityManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private static void AttachEventToNotification(int hashID, IBackgroundActivity ac
169169
.WithHorizontalAlignment(HorizontalAlignment.Right)
170170
.WithMargin(0d, 4d, 8d, 0d);
171171

172-
settingsButton.Click += async (_, _) => await SimpleDialogs.Dialog_DownloadSettings(parentContainer, currentGameProperty);
172+
settingsButton.Click += async (_, _) => await SimpleDialogs.Dialog_DownloadSettings(currentGameProperty);
173173

174174
StackPanel controlButtons = parentContainer.AddElementToStackPanel(
175175
UIElementExtensions.CreateStackPanel(Orientation.Horizontal)

CollapseLauncher/Classes/EventsManagement/EventsHandler.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,31 @@ public enum ErrorType { Unhandled, GameError, Connection, Warning, DiskCrc }
128128
internal static class ErrorSender
129129
{
130130
private static readonly ErrorSenderInvoker Invoker = new();
131+
public static Exception Exception;
131132
public static string ExceptionContent;
132133
public static ErrorType ExceptionType;
133134
public static string ExceptionTitle;
134135
public static string ExceptionSubtitle;
136+
public static Guid SentryErrorId;
135137

136138
public static void SendException(Exception e, ErrorType eT = ErrorType.Unhandled, bool isSendToSentry = true)
137139
{
140+
// Reset previous Sentry ID
141+
SentryErrorId = Guid.Empty;
142+
Exception = e;
143+
var sentryGuid = Guid.Empty;
138144
if (isSendToSentry)
139-
SentryHelper.ExceptionHandler(e, eT == ErrorType.Unhandled ?
145+
sentryGuid = SentryHelper.ExceptionHandler(e, eT == ErrorType.Unhandled ?
140146
SentryHelper.ExceptionType.UnhandledOther : SentryHelper.ExceptionType.Handled);
147+
SentryErrorId = sentryGuid;
141148
Invoker.SendException(e, eT);
142149
}
143150
public static void SendWarning(Exception e, ErrorType eT = ErrorType.Warning) =>
144-
Invoker.SendException(e, eT);
151+
Invoker.SendException(Exception = e, eT);
145152
public static void SendExceptionWithoutPage(Exception e, ErrorType eT = ErrorType.Unhandled)
146153
{
147154
SentryHelper.ExceptionHandler(e, eT == ErrorType.Unhandled ? SentryHelper.ExceptionType.UnhandledOther : SentryHelper.ExceptionType.Handled);
155+
Exception = e;
148156
ExceptionContent = e!.ToString();
149157
ExceptionType = eT;
150158
SetPageTitle(eT);

CollapseLauncher/Classes/Extension/UIElementExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Windows.UI;
1919
using Windows.UI.Text;
2020
// ReSharper disable SwitchStatementHandlesSomeKnownEnumValuesWithDefault
21+
// ReSharper disable UnusedMember.Global
2122

2223
namespace CollapseLauncher.Extension
2324
{

0 commit comments

Comments
 (0)