fix.界面上吃药状态显示的问题

This commit is contained in:
MistEO
2021-09-23 02:54:02 +08:00
parent ae4f2bf08b
commit aef0e89de0
4 changed files with 7 additions and 4 deletions

View File

@@ -7,7 +7,6 @@
#include <type_traits>
#include "AsstAux.h"
#include "AsstPort.h"
#include "Version.h"
namespace asst {

View File

@@ -36,7 +36,7 @@ namespace MeoAsstGui
_viewStatus = (JObject)JsonConvert.DeserializeObject(jsonStr);
}
}
catch (Exception e)
catch (Exception)
{
_viewStatus = new JObject();
return false;

View File

@@ -231,6 +231,7 @@ namespace MeoAsstGui
CatchStatus = "";
ExecInfo = "";
MedicineInfo = "";
StoneInfo = "";
RunStatus = "";
}
@@ -245,9 +246,13 @@ namespace MeoAsstGui
return;
}
ExecInfo = "";
if (UseMedicine)
{
MedicineInfo = "已吃药 0 个";
}
if (UseStone)
{
StoneInfo = "已碎石 0 ";
StoneInfo = "已碎石 0 ";
}
}

View File

@@ -70,7 +70,6 @@ namespace MeoAsstGui
{
return string.Empty;
}
return string.Empty;
}
private string _latestUrl = "https://github.com/MistEO/MeoAssistance/releases/latest";