Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit c749b57

Browse files
committed
Merge branch 'hotfix/列表删除功能修复'
2 parents d8d31a2 + 3329675 commit c749b57

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Support global hotkey.</br></br>
5353

5454
[更新日志](更新日志.md)
5555

56+
## ✔功能修复 2022年1月23日
57+
58+
1. 修复便签列表删除便签时需要打开后再删除的问题
59+
5660
## ⚡功能更新 2022年1月22日
5761

5862
1. 新增便签列表功能、支持暂时不显示的便签隐藏

StickyNotes/Properties/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StickyNotes/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="Version" xml:space="preserve">
121-
<value>v4.6.0</value>
121+
<value>v4.6.1</value>
122122
<comment>程序版本</comment>
123123
</data>
124124
</root>

StickyNotes/ViewModel/ListWindowViewModel.cs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
using GalaSoft.MvvmLight;
1010
using GalaSoft.MvvmLight.Command;
1111
using GalaSoft.MvvmLight.Messaging;
12+
using log4net;
13+
using StickyNotes.Utils;
1214

1315
namespace StickyNotes.ViewModel
1416
{
@@ -95,9 +97,21 @@ private void ChangeWindowVisibilityMethod(WindowsData windowsData)
9597

9698
private void DeleteWindowClick(WindowsData windowsData)
9799
{
98-
ProgramData.Instance.Datas.Remove(windowsData);
99-
//通知主窗体删除这个数据 关闭这个便签窗体
100-
Messenger.Default.Send<WindowsData>(windowsData, "DeleteWindow");
100+
try
101+
{
102+
if (ProgramData.Instance.HideWindowData.Contains(windowsData))
103+
{
104+
ChangeWindowVisibilityMethod(windowsData);
105+
}
106+
ProgramData.Instance.Datas.Remove(windowsData);
107+
//通知主窗体删除这个数据 关闭这个便签窗体
108+
Messenger.Default.Send<WindowsData>(windowsData, "DeleteWindow");
109+
}
110+
catch (Exception ex)
111+
{
112+
Logger.Log().Error("删除窗体时出错"+ex.Message);
113+
}
114+
101115
}
102116

103117
}

更新日志.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# 更新日志
22

3+
## ✔功能修复 2022年1月23日
4+
5+
1. 修复便签列表删除便签时需要打开后再删除的问题
6+
7+
## ⚡功能更新 2022年1月22日
8+
9+
1. 新增便签列表功能、支持暂时不显示的便签隐藏
10+
1. 新增更多主题颜色
11+
1. 界面UI更新,更加扁平化,符合WIN10的审美
12+
313

414

515
## ⚡功能更新+问题修复 2021年7月10日

0 commit comments

Comments
 (0)