diff options
Diffstat (limited to 'ToggleArtistVisibilityCommand.cpp')
-rw-r--r-- | ToggleArtistVisibilityCommand.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ToggleArtistVisibilityCommand.cpp b/ToggleArtistVisibilityCommand.cpp index 17583de..3c5d08b 100644 --- a/ToggleArtistVisibilityCommand.cpp +++ b/ToggleArtistVisibilityCommand.cpp @@ -1,11 +1,5 @@ #include "ToggleArtistVisibilityCommand.h" #include "ViewController.h" -ToggleArtistVisibilityCommand::ToggleArtistVisibilityCommand(ViewController & c) : controller(c) { -} - -void ToggleArtistVisibilityCommand::execute() { - bool value = !this->controller.get_artists_visible(); - this->controller.set_artists_visible(value); -} +ToggleArtistVisibilityCommand::ToggleArtistVisibilityCommand(ViewController & c) : ControlBooleanCommand(c.draw_artists) { } |