Skip to content

Commit

Permalink
Upstream Sync (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 authored Jun 18, 2023
2 parents a8cb3c4 + 984ec16 commit 24bd88f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

- Initial GA Actions Support
- Added New Target .NET 7.0
- Fix TaskDialog.DefaultButton property is ignored
- remove first dot in extension

### 2022-11-04

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,11 @@ private void ApplyControlConfiguration(NativeTaskDialogSettings settings)
}

// Set default button and add elevation icons to appropriate buttons.
settings.NativeConfiguration.defaultButtonIndex = FindDefaultButtonId(sourceList);
var defaultBtn = FindDefaultButtonId(sourceList);
if (defaultBtn != TaskDialogNativeMethods.NoDefaultButtonSpecified)
{
settings.NativeConfiguration.defaultButtonIndex = defaultBtn;
}

ApplyElevatedIcons(settings, sourceList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private static string NormalizeExtension(string rawExtension)
int indexOfDot = rawExtension.IndexOf('.');
if (indexOfDot != -1)
{
rawExtension.Remove(indexOfDot);
rawExtension = rawExtension.Substring(indexOfDot + 1);
}

return rawExtension;
Expand Down

0 comments on commit 24bd88f

Please sign in to comment.