View Single Post
Posts: 32 | Thanked: 2 times | Joined on Jun 2014
#641
Originally Posted by J4ZZ View Post
Your VolumeSlider.qml in
Code:
/usr/share/jolla-settings/pages/sounds/
should look like this

Code:
import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0
import Sailfish.Ambience 1.0

Slider {
    id: slider

    property string entryPath

    //% "Default ringtone volume"
    label: qsTrId("settings_sounds_la_volume")
    maximumValue: 100
    minimumValue: 1
    value: profileControl.ringerVolume

    onValueChanged: profileControl.ringerVolume = value
    onPressAndHold: cancel()

    Profile {
        id: profileControl
        onRingerVolumeChanged: slider.value = profileControl.ringerVolume
    }
}

then the patch will work!
Hi @J4ZZ thank you for your hint but still not works. Command line looks like this:
Code:
patch --dry-run -p 1 -d / -i /usr/share/patchmanager/patches/                                       sailfishos-eventsview-controls-remastered-patch/unified_diff.patch
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsView.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/EventsViewList.qml
patching file usr/share/lipstick-jolla-home-qt5/eventsview/FavoritesZoneControls                                       .qml
patching file usr/share/jolla-settings/pages/sounds/VolumeSlider.qml
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patching file usr/share/jolla-settings/pages/mobilenetworking/DataConnection.qml
patching file usr/share/jolla-settings/pages/bluetooth/EnableSwitch.qml
patching file usr/share/jolla-settings/pages/gps_and_location/LocationSwitch.qml
[root@Jolla nemo]#
To be honest I have no idea what happened but the patch is still not working :-(.I tried this run from command line and I tried run the patch from patchmanager, still "Failed to install patch".

Do you know what is wrong please?