CtrlLib: EditField::Error now does refresh only if status changes

git-svn-id: svn://ultimatepp.org/upp/trunk@7910 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-11-20 19:40:00 +00:00
parent 4c45f667d0
commit fff310d330

View file

@ -221,7 +221,7 @@ public:
void Clear();
void Reset();
void Error(bool error = true) { errorbg = error; Refresh(); }
void Error(bool error = true) { if(errorbg != error) { errorbg = error; Refresh(); } }
EditField& Password(bool pwd = true) { password = pwd; Finish(); return *this; }
bool IsPassword() const { return password; }