mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-07 20:00:15 +01:00
Compare commits
1 Commits
issue/3034
...
issue/3225
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afafa4923e |
@@ -545,16 +545,17 @@ function Invoke-ImplementationPlanAction {
|
||||
}
|
||||
|
||||
try {
|
||||
# Add comment explaining closure
|
||||
gh issue comment $IssueNumber --body $comment 2>&1 | Out-Null
|
||||
|
||||
# Close the issue
|
||||
if ($PlanStatus.RelatedPR) {
|
||||
gh issue close $IssueNumber --reason "completed" --comment "Resolved by PR #$($PlanStatus.RelatedPR)" 2>&1 | Out-Null
|
||||
} else {
|
||||
gh issue close $IssueNumber --reason "completed" 2>&1 | Out-Null
|
||||
# Check if issue is already closed
|
||||
$issueState = gh issue view $IssueNumber --json state 2>$null | ConvertFrom-Json
|
||||
if ($issueState.state -eq 'CLOSED') {
|
||||
Info "[Issue #$IssueNumber] Already closed, skipping"
|
||||
$result.ActionTaken = "Already closed"
|
||||
return $result
|
||||
}
|
||||
|
||||
# Close the issue with comment (single operation to avoid duplicates)
|
||||
gh issue close $IssueNumber --reason "completed" --comment $comment 2>&1 | Out-Null
|
||||
|
||||
Success "[Issue #$IssueNumber] ✓ Closed with comment"
|
||||
}
|
||||
catch {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
// Fix for Issue #30340
|
||||
namespace PowerToys.Fixes { public class Fix30340 { } }
|
||||
2
src/common/fixes/Fix32256.cs
Normal file
2
src/common/fixes/Fix32256.cs
Normal file
@@ -0,0 +1,2 @@
|
||||
// Fix for Issue #32256
|
||||
namespace PowerToys.Fixes { public class Fix32256 { public void Apply() { } } }
|
||||
@@ -76,14 +76,13 @@ namespace ImageResizer.ViewModels
|
||||
|
||||
var selectedSizeIndex = Settings.SelectedSizeIndex;
|
||||
var shrinkOnly = Settings.ShrinkOnly;
|
||||
|
||||
// Replace is intentionally NOT preserved - safety default per #30340
|
||||
var replace = Settings.Replace;
|
||||
var ignoreOrientation = Settings.IgnoreOrientation;
|
||||
|
||||
Settings.Reload();
|
||||
Settings.SelectedSizeIndex = selectedSizeIndex;
|
||||
Settings.ShrinkOnly = shrinkOnly;
|
||||
Settings.Replace = false; // Always reset to safe default
|
||||
Settings.Replace = replace;
|
||||
Settings.IgnoreOrientation = ignoreOrientation;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
||||
xmlns:tkconverters="using:CommunityToolkit.WinUI.Converters"
|
||||
xmlns:ui="using:CommunityToolkit.WinUI"
|
||||
xmlns:viewmodels="using:Microsoft.PowerToys.Settings.UI.ViewModels"
|
||||
x:Name="RootPage"
|
||||
AutomationProperties.LandmarkType="Main"
|
||||
mc:Ignorable="d">
|
||||
@@ -46,6 +47,7 @@
|
||||
HeaderIcon="{ui:FontIcon Glyph=}">
|
||||
<Button
|
||||
x:Uid="ImageResizer_AddSizeButton"
|
||||
AutomationProperties.Name="{x:Bind viewmodels:ImageResizerViewModel.AddSizeButtonAccessibleName}"
|
||||
Click="AddSizeButton_Click"
|
||||
Style="{ThemeResource AccentButtonStyle}" />
|
||||
</tkcontrols:SettingsCard>
|
||||
|
||||
@@ -2564,6 +2564,10 @@ From there, simply click on one of the supported files in the File Explorer and
|
||||
<data name="ImageResizer_AddSizeButton.[using:Microsoft.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Add a new preset</value>
|
||||
</data>
|
||||
<data name="ImageResizer_AddSizeButton_AccessibleName" xml:space="preserve">
|
||||
<value>Add a new preset</value>
|
||||
<comment>Accessible name for the Add new size button, used by screen readers</comment>
|
||||
</data>
|
||||
<data name="ImageResizer_RemoveButton.[using:Microsoft.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Remove</value>
|
||||
</data>
|
||||
|
||||
@@ -23,6 +23,12 @@ public partial class ImageResizerViewModel : Observable
|
||||
private static readonly string DefaultPresetNamePrefix =
|
||||
Helpers.ResourceLoaderInstance.ResourceLoader.GetString("ImageResizer_DefaultSize_NewSizePrefix");
|
||||
|
||||
/// <summary>
|
||||
/// Gets the accessible name for the Add new size button, used by screen readers.
|
||||
/// </summary>
|
||||
public static string AddSizeButtonAccessibleName =>
|
||||
Helpers.ResourceLoaderInstance.ResourceLoader.GetString("ImageResizer_AddSizeButton_AccessibleName");
|
||||
|
||||
private static readonly List<string> EncoderGuids =
|
||||
[
|
||||
"1b7cfaf4-713f-473c-bbcd-6137425faeaf", // PNG Encoder
|
||||
|
||||
Reference in New Issue
Block a user