Skip to content

Commit

Permalink
Refactor method name
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Oct 11, 2024
1 parent 610164b commit 544b9f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/elems/mainWindow/keyboard/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,6 @@ void geKeyboard::openTrackMenu() const
const geTrack* track = getTrackAtCursor(Fl::event_x());
if (track == nullptr || track->getChannelAtCursor(Fl::event_y()) != nullptr)
return;
track->showAddChannelMenu();
track->showMenu();
}
} // namespace giada::v
2 changes: 1 addition & 1 deletion src/gui/elems/mainWindow/keyboard/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ geChannel* geTrack::addChannel(const c::channel::Data& d)

/* -------------------------------------------------------------------------- */

void geTrack::showAddChannelMenu() const
void geTrack::showMenu() const
{
geMenu menu;

Expand Down
4 changes: 2 additions & 2 deletions src/gui/elems/mainWindow/keyboard/track.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ class geTrack : public geFlexResizable

int countChannels() const;

/* showAddChannelMenu
/* showMenu
Displays the menu for adding/removing channels. */

void showAddChannelMenu() const;
void showMenu() const;

/* addChannel
Adds a new channel in this track. */
Expand Down

0 comments on commit 544b9f5

Please sign in to comment.