Skip to content

Commit 0b6779f

Browse files
committed
Add menu button to quickly clear browsing data
1 parent b259bea commit 0b6779f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

apps/browser/qml/pages/components/PopUpMenuItem.qml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,22 @@ Item {
208208
}
209209
}
210210

211+
OverlayListItem {
212+
height: Theme.itemSizeSmall
213+
iconWidth: root.iconWidth
214+
horizontalOffset: root.horizontalOffset
215+
//: The label for the button for accessing clear browsing data page
216+
//% "Clear browsing data"
217+
text: qsTrId("settings_browser-la-clear-browsing-data")
218+
iconSource: "image://theme/icon-m-delete"
219+
220+
onClicked: {
221+
overlay.animator.showChrome()
222+
pageStack.push("../PrivacySettingsPage.qml")
223+
// pageStack.push("../PrivacySettingsPage.qml", { previousPage: page })
224+
}
225+
}
226+
211227
OverlayListItem {
212228
height: Theme.itemSizeSmall
213229
iconWidth: root.iconWidth

0 commit comments

Comments
 (0)