We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4befc83 commit 47e62d1Copy full SHA for 47e62d1
app/src/main/java/org/matrix/chromext/proxy/Menu.kt
@@ -110,6 +110,7 @@ object MenuProxy {
110
setChecked.invoke(preferences["gesture_mod"], false)
111
}
112
113
+ var reset_confirming = 1
114
val listeners =
115
mapOf(
116
"bookmark" to
@@ -224,6 +225,13 @@ object MenuProxy {
224
225
},
226
"reset" to
227
fun(_: Any) {
228
+ if (reset_confirming < 3) {
229
+ Log.toast(
230
+ ctx,
231
+ "Clik ${3 - reset_confirming} more times if you confirm to reset ChromeXt")
232
+ reset_confirming += 1
233
+ return
234
+ }
235
arrayOf("ChromeXt", "CosmeticFilter", "UserAgent").forEach {
236
with(ctx.getSharedPreferences(it, Context.MODE_PRIVATE).edit()) {
237
clear()
0 commit comments