File tree Expand file tree Collapse file tree
source/WindowsAPICodePack Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99- Initial GA Actions Support
1010- Added New Target .NET 7.0
11+ - Fix TaskDialog.DefaultButton property is ignored
12+ - remove first dot in extension
1113
1214### 2022-11-04
1315
Original file line number Diff line number Diff line change @@ -815,7 +815,11 @@ private void ApplyControlConfiguration(NativeTaskDialogSettings settings)
815815 }
816816
817817 // Set default button and add elevation icons to appropriate buttons.
818- settings . NativeConfiguration . defaultButtonIndex = FindDefaultButtonId ( sourceList ) ;
818+ var defaultBtn = FindDefaultButtonId ( sourceList ) ;
819+ if ( defaultBtn != TaskDialogNativeMethods . NoDefaultButtonSpecified )
820+ {
821+ settings . NativeConfiguration . defaultButtonIndex = defaultBtn ;
822+ }
819823
820824 ApplyElevatedIcons ( settings , sourceList ) ;
821825 }
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private static string NormalizeExtension(string rawExtension)
128128 int indexOfDot = rawExtension . IndexOf ( '.' ) ;
129129 if ( indexOfDot != - 1 )
130130 {
131- rawExtension . Remove ( indexOfDot ) ;
131+ rawExtension = rawExtension . Substring ( indexOfDot + 1 ) ;
132132 }
133133
134134 return rawExtension ;
You can’t perform that action at this time.
0 commit comments