#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); }