mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 14:16:28 +01:00
New Track virtual eliminates a track_cast in CommonCommandFlags...
... Also a better name for one of the command flags This allows removal of special mention of TimeTrack
This commit is contained in:
@@ -85,7 +85,7 @@ void SelectAllIfNone( AudacityProject &project )
|
||||
{
|
||||
auto &viewInfo = ViewInfo::Get( project );
|
||||
auto flags = MenuManager::Get( project ).GetUpdateFlags();
|
||||
if((flags & TracksSelectedFlag()).none() ||
|
||||
if((flags & EditableTracksSelectedFlag()).none() ||
|
||||
viewInfo.selectedRegion.isPoint())
|
||||
DoSelectAllAudio( project );
|
||||
}
|
||||
@@ -98,7 +98,7 @@ bool SelectAllIfNoneAndAllowed( AudacityProject &project )
|
||||
auto &viewInfo = ViewInfo::Get( project );
|
||||
auto flags = MenuManager::Get( project ).GetUpdateFlags();
|
||||
|
||||
if((flags & TracksSelectedFlag()).none() ||
|
||||
if((flags & EditableTracksSelectedFlag()).none() ||
|
||||
viewInfo.selectedRegion.isPoint()) {
|
||||
if (!allowed) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user