Skip to content

Commit 70c7c54

Browse files
committed
Fix build warnings
1 parent f5c6ea5 commit 70c7c54

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Text-Grab/Pages/GeneralSettings.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
x:Name="VersionTextblock"
2828
VerticalAlignment="Center"
2929
Style="{StaticResource TextBodyNormal}"
30-
Text="Version 4.X.X WPFUI Tray" />
30+
Text="Version 4.5-beta1" />
3131

3232
<ui:HyperlinkButton
3333
x:Name="OpenExeFolderButton"

Text-Grab/Pages/LanguageSettings.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ public async Task CopyFileWithElevatedPermissions(string sourcePath, string dest
122122
Process? process = Process.Start(startInfo);
123123
// string errors = process?.StandardError.ReadToEnd();
124124
// string output = process?.StandardOutput.ReadToEnd();
125-
await process?.WaitForExitAsync();
125+
if (process is not null)
126+
await process.WaitForExitAsync();
126127

127128
// if (!string.IsNullOrEmpty(errors))
128129
// ErrorsAndOutputText.Text += Environment.NewLine + errors;

Text-Grab/Services/SettingsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private void MigrateLocalSettingsToClassic()
3939
foreach (KeyValuePair<string, object> localSetting in _localSettings.Values)
4040
{
4141
try { ClassicSettings[localSetting.Key] = localSetting.Value; }
42-
catch (SettingsPropertyNotFoundException ex) { Debug.WriteLine($"Failed to migrate {localSetting.Key} of value {localSetting.Value}"); } // continue, just skip the setting
42+
catch (SettingsPropertyNotFoundException ex) { Debug.WriteLine($"Failed to migrate {localSetting.Key} of value {localSetting.Value}, exception message: {ex.Message}"); } // continue, just skip the setting
4343
catch (Exception ex)
4444
{
4545
Debug.WriteLine($"Failed to migrate setting {localSetting.Key} from ApplicationDataContainer {ex.Message}");

0 commit comments

Comments
 (0)