1
0
Fork 0

[Backend+Launcher] Removed some unneeded debug code.

This commit is contained in:
Kitteh 2018-11-07 08:01:18 +00:00
parent 3b9cbf3f15
commit 0d2b5e2b5a
3 changed files with 5 additions and 8 deletions

View file

@ -159,10 +159,7 @@ MpvPlayerBackend::~MpvPlayerBackend()
Display *dpy = QX11Info::display();
DPMSEnable(dpy);
qDebug() << "Enabled DPMS.";
if (mpv_gl) {
mpv_render_context_free(mpv_gl);
}
mpv_terminate_destroy(mpv);
}
@ -183,13 +180,14 @@ MpvPlayerBackend::doUpdate()
QVariant
MpvPlayerBackend::getProperty(const QString& name) const
{
qDebug() << "Getting Property: " << name;
return mpv::qt::get_property_variant(mpv, name);
}
void
MpvPlayerBackend::command(const QVariant& params)
{
qDebug() << params;
qDebug() << "Running Command: " << params;
mpv::qt::command_variant(mpv, params);
}
@ -202,6 +200,7 @@ MpvPlayerBackend::setProperty(const QString& name, const QVariant& value)
void
MpvPlayerBackend::setOption(const QString& name, const QVariant& value)
{
qDebug() << "Setting Option '" << name << "' to '" << value << "'";
mpv::qt::set_option_variant(mpv, name, value);
}

View file

@ -40,7 +40,6 @@ main(int argc, char* argv[])
<< QProcessEnvironment::systemEnvironment().value(
"APPIMAGE", ""));
updater.waitForFinished();
qDebug() << program;
exit(0);
}
}
@ -52,7 +51,6 @@ main(int argc, char* argv[])
QString newpath =
QProcessEnvironment::systemEnvironment().value("APPDIR", "") +
"/usr/bin:" + QProcessEnvironment::systemEnvironment().value("PATH", "");
qDebug() << newpath;
setenv("PATH", newpath.toUtf8().constData(), 1);
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

View file

@ -1209,7 +1209,7 @@ ApplicationWindow {
anchors.bottom: parent.bottom
anchors.left: playPauseButton.right
onClicked: {
player.prevPlaylistItem()
player.nextPlaylistItem()
}
background: Rectangle {
color: "transparent"