Setting the default audio profile has also been moved into the separate dialog box. This should not change anything and no bugs were found in testing, however I have no idea how objects in QML/C++ are initialized or if our current codebase is created with this in mind.
19 lines
504 B
QML
19 lines
504 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import QtQuick.Layouts 1.3
|
|
import matzman666.advsettings 1.0
|
|
import "../.." //common imports
|
|
|
|
MyDialogOkCancelPopup {
|
|
id: audioDeleteProfileDialog
|
|
property int profileIndex: -1
|
|
dialogTitle: "Delete Profile"
|
|
dialogText: "Do you really want to delete this audio profile?"
|
|
onClosed: {
|
|
if (okClicked) {
|
|
AudioTabController.deleteAudioProfile(profileIndex)
|
|
pttProfileComboBox.currentIndex = 0
|
|
}
|
|
}
|
|
}
|