mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Disable auto replaces that match an empty string.
Some people are having problems with these suddenly showing up and making typing impossible. This doesn't fix the cause of the ARs appearing, but it at least prevents it from making MSE unusable.
This commit is contained in:
@@ -7,6 +7,7 @@ HEAD: new items added as changes are made
|
|||||||
Bug fixes:
|
Bug fixes:
|
||||||
* Fixed: crash in expand_keywords when given empty tags (#90)
|
* Fixed: crash in expand_keywords when given empty tags (#90)
|
||||||
* Fixed: tab traversal in native look editors (style and set info tabs) (#98)
|
* Fixed: tab traversal in native look editors (style and set info tabs) (#98)
|
||||||
|
* Auto replaces that match "" are now disabled
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
version 2.1.1, 2020-06-14
|
version 2.1.1, 2020-06-14
|
||||||
|
|||||||
@@ -49,3 +49,9 @@ IMPLEMENT_REFLECTION_NO_SCRIPT(AutoReplace) {
|
|||||||
REFLECT(match);
|
REFLECT(match);
|
||||||
REFLECT(replace);
|
REFLECT(replace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void after_reading(AutoReplace& ar, Version) {
|
||||||
|
if (ar.match.empty()) {
|
||||||
|
ar.enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -58,3 +58,5 @@ public:
|
|||||||
DECLARE_REFLECTION();
|
DECLARE_REFLECTION();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void after_reading(AutoReplace& ar, Version);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user