mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Small bugfix in CommandWindow's filename parser.
This commit is contained in:
parent
2fe495cb2b
commit
0639b3f0c2
@ -167,7 +167,8 @@ bool CommandWindow::ProcessCommand(const std::string& cmd) {
|
||||
|
||||
bool CommandWindow::PlayFile(const std::vector<std::string>& args) {
|
||||
if (args.size() > 0) {
|
||||
transport->Start(args.at(0));
|
||||
std::string filename = boost::algorithm::join(args, " ");
|
||||
transport->Start(filename);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ LogWindow::LogWindow() {
|
||||
this->Create();
|
||||
|
||||
musik::debug::string_logged.connect(this, &LogWindow::OnLogged);
|
||||
musik::debug::err("LogWindow", "initialized");
|
||||
musik::debug::warn("LogWindow", "initialized");
|
||||
}
|
||||
|
||||
LogWindow::~LogWindow() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "TransportWindow.h"
|
||||
@ -38,7 +38,7 @@ void TransportWindow::Repaint() {
|
||||
WINDOW *c = this->GetContents();
|
||||
|
||||
std::string volume = boost::str(boost::format(
|
||||
"♫ volume: %1%\n") % this->transport->Volume());
|
||||
"volume: %1%\n") % this->transport->Volume());
|
||||
|
||||
wprintw(c, volume.c_str());
|
||||
wprintw(c, "filename: ");
|
||||
|
Loading…
Reference in New Issue
Block a user