diff --git a/qml/Main.qml b/qml/Main.qml index b2fb453..a31f58f 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -232,8 +232,15 @@ MainView { } // ================================================================ + SettingsPage { + id: settingsPage + } +======= // SEITE 1: EINSTELLUNGEN // ================================================================ + Settings { + id: settingsPage + }================================================================ SettingsPage { id: settingsPage } diff --git a/qml/SettingsPage.qml b/qml/Settings.qml similarity index 98% rename from qml/SettingsPage.qml rename to qml/Settings.qml index 2e44658..7efce8e 100644 --- a/qml/SettingsPage.qml +++ b/qml/Settings.qml @@ -106,7 +106,7 @@ Page { stepSize: 0.1 value: 0.5 - onMoved: { + onValueChanged: { var volume = musicVolumeSlider.value; py.call("fortunecookie.set_music_volume", [volume]); musicVolumeLabel.text = Math.round(volume * 100) + "%"; @@ -144,7 +144,7 @@ Page { stepSize: 0.1 value: 1.0 - onMoved: { + onValueChanged: { var volume = crackVolumeSlider.value; py.call("fortunecookie.set_crack_volume", [volume]); crackVolumeLabel.text = Math.round(volume * 100) + "%";