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

View file

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

View file

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