Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fixed 右键保存图片时窗口始终置顶导致修改不了名字
Browse files Browse the repository at this point in the history
  • Loading branch information
tylearymf committed Feb 18, 2020
1 parent 5c6fb7c commit 5eb5574
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: System.Runtime.InteropServices.Guid("4483e561-8b3e-427d-98a4-e0e821b7bf2f")]
[assembly: System.Reflection.AssemblyConfiguration("")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.6")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.7")]
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)]

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
---

## 目前已知问题
- 右键保存图片时窗口始终置顶导致修改不了名字
---
- 暂无

## 后续要加的功能
- 暂无
2 changes: 2 additions & 0 deletions SETUNA/Main/Other/LayerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public void Update()

//当前正在截图
if (!string.IsNullOrEmpty(tTopTitle) && tTopTitle == typeof(CaptureForm).Name) return;
//当前正在保存
if (!string.IsNullOrEmpty(tTopTitle) && tTopTitle == CImageStyleItem.SaveImageTitle) return;

//过滤其他截图工具
if (!string.IsNullOrEmpty(tTopClassName) && mIgnoreClassNames.Contains(tTopClassName))
Expand Down
2 changes: 2 additions & 0 deletions SETUNA/Main/StyleItems/CImageStyleItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

public abstract class CImageStyleItem : CStyleItem
{
public const string SaveImageTitle = "SETUNA2 - 另存为";
public bool CopyPath = false;
public EnumDupliType DupliType = EnumDupliType.OverWrite;
public string FileName;
Expand Down Expand Up @@ -132,6 +133,7 @@ protected string GetSavePath(ref ScrapBase scrap)
if (flag)
{
SaveFileDialog dialog = new SaveFileDialog {
Title = SaveImageTitle,
InitialDirectory = saveFolder,
FileName = name,
DefaultExt = extension,
Expand Down

0 comments on commit 5eb5574

Please sign in to comment.