Commit 1fd0cbfe authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Remove audio volume settings

Today, the expectation is to use the system volume for nearly
everything. Because of this, the volume settings were removed some time
ago, yet the automatic volume settings from existing settings was not
removed correctly, leading to situations where sound is played at
minimal volume without the user to change it.
parent ec4e2015
Pipeline #260621 passed with stage
in 2 minutes and 13 seconds
......@@ -57,7 +57,6 @@ OutputDeviceController &OutputDeviceController::self()
void OutputDeviceController::play(const QString &filePath)
{
d->backend()->setUri(filePath);
d->backend()->setVolume(d->m_volume);
d->backend()->play();
emit started();
}
......
......@@ -23,9 +23,6 @@ MainWindow::MainWindow()
{
rootContext()->setContextObject(new KLocalizedContext(this));
// load saved sound settings
OutputDeviceController::self().setVolume(Settings::audioOutputVolume());
// set view
rootContext()->setContextProperty(QStringLiteral("g_trainingSession"), &m_trainingSession);
rootContext()->setContextProperty(QStringLiteral("g_profileManager"), &m_profileManager);
......
......@@ -39,9 +39,6 @@ MainWindowEditor::MainWindowEditor(ContributorRepository *repository)
m_repository->setStorageLocation(QUrl::fromLocalFile(Settings::courseRepositoryPath()));
m_editorSession->setRepository(m_repository);
// load saved sound settings
OutputDeviceController::self().setVolume(Settings::audioOutputVolume());
m_repository->reloadCourses();
// create menu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment