Skip to content

Commit

Permalink
Fixed updater dialog crash..
Browse files Browse the repository at this point in the history
- Markdown library Document is null on constructor (make bug report.)
  • Loading branch information
rocksdanister committed Feb 20, 2023
1 parent ecd7340 commit 3afb8c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
VerticalAlignment="Top"
IsClosable="False"
IsOpen="True"
Message="Development on hold"
Message="This feature development is on hold"
Severity="Error">
<InfoBar.ActionButton>
<HyperlinkButton NavigateUri="https://github.com/rocksdanister/lively/issues/1569" ToolTipService.ToolTip="https://github.com/rocksdanister/lively/issues/1569">
Expand Down
8 changes: 3 additions & 5 deletions src/Lively/Lively/Views/AppUpdater.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public AppUpdater(Uri fileUri, string changelogText)
{
downloadBtn.IsEnabled = false;
this.Title = Properties.Resources.TextupdateCheckFail;
changelog.Document.Blocks.Add(new Paragraph(new Run(Properties.Resources.LivelyExceptionAppUpdateFail)));
changelog.Markdown = Properties.Resources.LivelyExceptionAppUpdateFail;
}
}

Expand Down Expand Up @@ -72,8 +72,7 @@ private void UpdateDownload_DownloadFileCompleted(object sender, bool success)
else
{
taskbarItemInfo.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Error;
changelog.Document.Blocks.Clear();
changelog.Document.Blocks.Add(new Paragraph(new Run(Properties.Resources.LivelyExceptionAppUpdateFail)));
changelog.Markdown = Properties.Resources.LivelyExceptionAppUpdateFail;
_forceClose = true;
}
}));
Expand Down Expand Up @@ -131,8 +130,7 @@ private void Download_Button_Click(object sender, RoutedEventArgs e)
{
Logger.Error(ex);
taskbarItemInfo.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Error;
changelog.Document.Blocks.Clear();
changelog.Document.Blocks.Add(new Paragraph(new Run(Properties.Resources.LivelyExceptionAppUpdateFail)));
changelog.Markdown = Properties.Resources.LivelyExceptionAppUpdateFail;
_forceClose = true;
}
}
Expand Down

0 comments on commit 3afb8c9

Please sign in to comment.