aboutsummaryrefslogtreecommitdiff
path: root/ViewController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ViewController.cpp')
-rw-r--r--ViewController.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ViewController.cpp b/ViewController.cpp
index 6422bbb..a23283d 100644
--- a/ViewController.cpp
+++ b/ViewController.cpp
@@ -1,4 +1,5 @@
#include "ViewController.h"
+#include "ArtistVisibilityCommand.h"
#include "Exception.h"
#include "KeyboardCode.h"
#include "MouseCode.h"
@@ -18,7 +19,7 @@ ViewController::~ViewController() {
void ViewController::update() {
this->update_size();
this->update_tiles();
- this->update_artists();
+ if (this->draw_artists) this->update_artists();
}
void ViewController::update_size() {
@@ -72,6 +73,7 @@ void ViewController::ev_keydown(KeyboardCode key) {
break;
}
case KEY_A: {
+ ArtistVisibilityCommand(this->cmd_base).toggle();
break;
}
case KEY_LEFT: {