mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
don't refresh stats panel when only a style changes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1106 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <gui/util.hpp>
|
||||
#include <data/game.hpp>
|
||||
#include <data/statistics.hpp>
|
||||
#include <data/action/value.hpp>
|
||||
#include <util/window_id.hpp>
|
||||
#include <util/alignment.hpp>
|
||||
#include <util/tagged_string.hpp>
|
||||
@@ -337,8 +338,12 @@ void StatsPanel::onChangeSet() {
|
||||
onChange();
|
||||
}
|
||||
|
||||
void StatsPanel::onAction(const Action&, bool undone) {
|
||||
onChange();
|
||||
void StatsPanel::onAction(const Action& action, bool undone) {
|
||||
TYPE_CASE_(action, ScriptValueEvent) {
|
||||
// ignore style only stuff
|
||||
} else {
|
||||
onChange();
|
||||
}
|
||||
}
|
||||
|
||||
void StatsPanel::initUI (wxToolBar* tb, wxMenuBar* mb) {
|
||||
|
||||
Reference in New Issue
Block a user