提交单例模式释放错误
This commit is contained in:
1 parent
33c2994455
commit
cb7e216b3a
2 files changed
+2
-2
No files matched your search
@@ -25,7 +25,7 @@ namespace DHSoftware
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
if (_instance == null || _instance.IsDisposed)
|
||||
_instance = new LoginWindow();
|
||||
return _instance;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace DHSoftware.Views
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
if (_instance == null || _instance.IsDisposed)
|
||||
_instance = new SettingWindow();
|
||||
return _instance;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user