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

Make AdornedRulerPanel respect toolbar edit mode

AdornedRulerPanel also has a grabber, this commit makes it so that the grabber does not exist when edit mode is off.

Signed-off-by: abb128 <alexx128p@gmail.com>
This commit is contained in:
abb128
2021-07-15 21:06:04 +03:00
parent 534da8b617
commit 21614a390c
2 changed files with 28 additions and 7 deletions

View File

@@ -13,6 +13,7 @@
#include "CellularPanel.h"
#include "widgets/Ruler.h" // member variable
#include "widgets/Grabber.h" // mGrabber
#include "Prefs.h"
#include "ViewInfo.h" // for PlayRegion
@@ -142,6 +143,9 @@ private:
double mQuickPlayPos;
bool mIsSnapped;
bool mEditMode;
Grabber *mGrabber;
PlayRegion mOldPlayRegion;