mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
events on script update; fix in cycle_sort; card list updated on value action
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@136 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <data/stylesheet.hpp>
|
||||
#include <data/format/clipboard.hpp>
|
||||
#include <data/action/set.hpp>
|
||||
#include <data/action/value.hpp>
|
||||
#include <util/window_id.hpp>
|
||||
#include <wx/clipbrd.h>
|
||||
|
||||
@@ -97,6 +98,14 @@ void CardListBase::onAction(const Action& action, bool undone) {
|
||||
RefreshItem((long)action.card_id1);
|
||||
RefreshItem((long)action.card_id2);
|
||||
}
|
||||
TYPE_CASE_(action, ScriptValueEvent) {
|
||||
// No refresh needed, a ScriptValueEvent is only generated in response to a ValueAction
|
||||
return;
|
||||
}
|
||||
TYPE_CASE_(action, ValueAction) {
|
||||
refreshList();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const vector<CardP>& CardListBase::getCards() const {
|
||||
|
||||
Reference in New Issue
Block a user