mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-29 19:20:28 +00:00
Default to console layout until we can build a path editor thing
This commit is contained in:
parent
bfbb01fa57
commit
7220617db0
@ -201,7 +201,7 @@ int main(int argc, char* argv[])
|
||||
state.input = NULL;
|
||||
state.keyHandler = NULL;
|
||||
|
||||
changeLayout(state, libraryLayout);
|
||||
changeLayout(state, consoleLayout);
|
||||
|
||||
while (!quit) {
|
||||
/* if the focused item is an IInput, then get characters from it,
|
||||
|
@ -47,7 +47,7 @@ CommandWindow::CommandWindow(
|
||||
this->bufferPosition = 0;
|
||||
this->output = &output;
|
||||
this->paused = false;
|
||||
this->output->WriteLine("type 'h' or 'help'\n", BOX_COLOR_BLACK_ON_GREY);
|
||||
this->Help();
|
||||
}
|
||||
|
||||
CommandWindow::~CommandWindow() {
|
||||
|
@ -56,9 +56,9 @@ void TransportWindow::Show() {
|
||||
}
|
||||
|
||||
void TransportWindow::ProcessMessage(IMessage &message) {
|
||||
int type = message.Type();
|
||||
int type = message.Type();
|
||||
|
||||
if (type == REFRESH_TRANSPORT_READOUT) {
|
||||
if (type == REFRESH_TRANSPORT_READOUT) {
|
||||
this->Update();
|
||||
DEBOUNCE_REFRESH(REFRESH_INTERVAL_MS)
|
||||
}
|
||||
@ -110,11 +110,11 @@ void TransportWindow::Update() {
|
||||
/* playing SONG TITLE from ALBUM NAME */
|
||||
std::string duration = "0";
|
||||
|
||||
if (transport->GetPlaybackState() == Transport::PlaybackStopped) {
|
||||
if (transport->GetPlaybackState() == Transport::PlaybackStopped) {
|
||||
wattron(c, gb);
|
||||
wprintw(c, "playback is stopped");
|
||||
wattroff(c, gb);
|
||||
}
|
||||
}
|
||||
else {
|
||||
std::string title, album;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user