only show konachan button and create homework folder when weeb

This commit is contained in:
end-4
2025-09-06 09:44:46 +02:00
parent e9c73ebb71
commit 801cd2e855
4 changed files with 11 additions and 1 deletions
@@ -46,7 +46,6 @@ Singleton {
Quickshell.execDetached(["mkdir", "-p", `${favicons}`])
Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`])
Quickshell.execDetached(["bash", "-c", `rm -rf '${booruPreviews}'; mkdir -p '${booruPreviews}'`])
Quickshell.execDetached(["bash", "-c", `mkdir -p '${booruDownloads}' && mkdir -p '${booruDownloadsNsfw}'`])
Quickshell.execDetached(["bash", "-c", `rm -rf '${latexOutput}'; mkdir -p '${latexOutput}'`])
Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`])
Quickshell.execDetached(["mkdir", "-p", `${aiChats}`])
@@ -90,6 +90,7 @@ ContentPage {
ColumnLayout {
RippleButtonWithIcon {
id: rndWallBtn
visible: Config.options.policies.weeb === 1
Layout.fillWidth: true
buttonRadius: Appearance.rounding.small
materialIcon: "wallpaper"
@@ -23,6 +23,15 @@ Item {
property var suggestionQuery: ""
property var suggestionList: []
Connections {
target: Config
function onReadyChanged() {
if (Config.options.policies.weeb !== 0) {
Quickshell.execDetached(["bash", "-c", `mkdir -p '${root.downloadPath}' && mkdir -p '${root.nsfwPath}'`])
}
}
}
Connections {
target: Booru
function onTagSuggestion(query, suggestions) {
+1
View File
@@ -236,6 +236,7 @@ ApplicationWindow {
Layout.alignment: Qt.AlignHCenter
RippleButtonWithIcon {
id: rndWallBtn
visible: Config.options.policies.weeb === 1
Layout.alignment: Qt.AlignHCenter
buttonRadius: Appearance.rounding.small
materialIcon: "wallpaper"