UI - Use actions in sequencer toolbar
This commit is contained in:
parent
d16e583458
commit
6afb1d9374
2 changed files with 5 additions and 4 deletions
|
@ -77,7 +77,7 @@ void T_UIAction::tbButton( ) const noexcept
|
||||||
if ( shortcut ) {
|
if ( shortcut ) {
|
||||||
char kbs[ 20 ];
|
char kbs[ 20 ];
|
||||||
shortcut->toString( kbs , 20 );
|
shortcut->toString( kbs , 20 );
|
||||||
sb << ' ' << kbs;
|
sb << " (" << kbs << ')';
|
||||||
}
|
}
|
||||||
sb << '\0';
|
sb << '\0';
|
||||||
|
|
||||||
|
|
|
@ -293,9 +293,10 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
|
||||||
using namespace ImGui;
|
using namespace ImGui;
|
||||||
auto& sync( Common::Sync( ) );
|
auto& sync( Common::Sync( ) );
|
||||||
|
|
||||||
if ( ToolbarButton( sync.playing( ) ? ICON_FA_STOP : ICON_FA_PLAY , BtSize ,
|
if ( sync.playing( ) ) {
|
||||||
sync.playing( ) ? "Stop" : "Play" ) ) {
|
UI::Main( ).actionButton( "Stop" );
|
||||||
sync.playing( ) = !sync.playing( ) && !sync.finished( );
|
} else {
|
||||||
|
UI::Main( ).actionButton( "Play" );
|
||||||
}
|
}
|
||||||
|
|
||||||
SameLine( );
|
SameLine( );
|
||||||
|
|
Loading…
Reference in a new issue