1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 2357 ? - Non-standard behavior when right-clicking on pinned playhead/recordhead

This fix fixes a number of issues with right context menus and the pinned button.
I used bug number 2357 (P2) with a question mark as the reference, as I think after this fix 2357 can be closed, even though the fix does not directly address the reported problem.

- The right context menu is now shorter and has pinned/unpinned in it.
- Two menu items have moved to interface preferences (timeline)
- The pin-unpin button now makes a pop-up menu whether right or left clicked.
- The menu is now in the right place.
- The pop up menu now uses checkboxes rather than the text changing.
This commit is contained in:
James Crook
2020-03-15 19:52:52 +00:00
parent 9cf80a41ee
commit ce085afb3b
3 changed files with 52 additions and 41 deletions

View File

@@ -73,7 +73,7 @@ public:
void UpdateQuickPlayPos(wxCoord &mousePosX, bool shiftDown);
bool ShowingScrubRuler() const;
void OnToggleScrubRulerFromMenu(wxCommandEvent& );
//void OnToggleScrubRulerFromMenu(wxCommandEvent& );
bool SetPanelSize();
void DrawBothOverlays();
@@ -156,10 +156,11 @@ private:
void HandleSnapping();
void OnToggleQuickPlay(wxCommandEvent &evt);
void OnSyncSelToQuickPlay(wxCommandEvent &evt);
void OnTimelineToolTips(wxCommandEvent &evt);
//void OnTimelineToolTips(wxCommandEvent &evt);
void OnAutoScroll(wxCommandEvent &evt);
void OnLockPlayRegion(wxCommandEvent &evt);
void OnPinnedButton(wxCommandEvent & event);
void OnTogglePinnedState(wxCommandEvent & event);
bool mPlayRegionDragsSelection;