work safety: disabled by default, add toggle to settings app

This commit is contained in:
end-4
2025-10-23 16:47:06 +02:00
parent 24ae5d327e
commit 23830f3454
2 changed files with 24 additions and 2 deletions
@@ -483,8 +483,8 @@ Singleton {
property JsonObject workSafety: JsonObject {
property JsonObject enable: JsonObject {
property bool wallpaper: true
property bool clipboard: true
property bool wallpaper: false
property bool clipboard: false
}
property JsonObject triggerCondition: JsonObject {
property list<string> networkNameKeywords: ["airport", "cafe", "college", "company", "eduroam", "free", "guest", "public", "school", "university"]
@@ -328,4 +328,26 @@ ContentPage {
}
}
}
ContentSection {
icon: "work_alert"
title: Translation.tr("Work safety")
ConfigSwitch {
buttonIcon: "assignment"
text: Translation.tr("Hide clipboard images copied from sussy sources")
checked: Config.options.workSafety.enable.clipboard
onCheckedChanged: {
Config.options.workSafety.enable.clipboard = checked;
}
}
ConfigSwitch {
buttonIcon: "wallpaper"
text: Translation.tr("Hide sussy/anime wallpapers")
checked: Config.options.workSafety.enable.wallpaper
onCheckedChanged: {
Config.options.workSafety.enable.wallpaper = checked;
}
}
}
}