Skip to content

Commit 97ec224

Browse files
committed
chore: (gallery/SampleCodePresenter) update comments
1 parent efce863 commit 97ec224

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/iNKORE.UI.WPF.Modern.Gallery/Controls/SampleCodePresenter.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private void SampleCodePresenter_Loaded(object sender, RoutedEventArgs e)
146146
{
147147
if (CodePresenter?.ContextMenu != null)
148148
{
149-
//show Copy only when there is a selection; always show Select All.
149+
// Adjust context menu to only show 'Copy' if there is a selection
150150
CodePresenter.ContextMenu.Opened += (s, args) =>
151151
{
152152
var hasSelection = CodePresenter?.SelectionLength > 0;
@@ -166,7 +166,7 @@ private void SampleCodePresenter_Loaded(object sender, RoutedEventArgs e)
166166
}
167167
catch
168168
{
169-
// Swallow any errors here to avoid breaking the sample if localization isn't available.
169+
// Exception can happen if the localization resources are not loaded, ignore it.
170170
}
171171
}
172172

0 commit comments

Comments
 (0)