mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 03:04:00 +00:00
Reset song on mouse click
This commit is contained in:
parent
7831732497
commit
15d4100244
|
@ -86,6 +86,7 @@ enum {
|
|||
- (void) setRepeatVolta:(int)repeatVolta;
|
||||
|
||||
- (void) playSong;
|
||||
- (void) endSong;
|
||||
|
||||
- (NSURL *) tmpURL;
|
||||
- (NSURL *) workURL;
|
||||
|
|
|
@ -490,6 +490,11 @@
|
|||
[self setPlayElements:[self playElements]];
|
||||
}
|
||||
|
||||
- (void) endSong
|
||||
{
|
||||
musicSequence = nil;
|
||||
}
|
||||
|
||||
- (void) playWithGroove:(NSString *)groove inSections:(NSRange)sections
|
||||
{
|
||||
NSString * savedGroove = songGroove;
|
||||
|
|
|
@ -834,6 +834,8 @@ const float kSemiFloor = -1.0f*kLineH;
|
|||
|
||||
- (void) mouseDown:(NSEvent *)event
|
||||
{
|
||||
[[self document] endSong];
|
||||
|
||||
BOOL extend = ([event modifierFlags] & NSShiftKeyMask) != 0;
|
||||
VLRegion region = [self findRegionForEvent:event];
|
||||
if (extend && [[self editTarget] canExtendSelection:region])
|
||||
|
|
Loading…
Reference in New Issue
Block a user