forked from Shinonome/dots-hyprland
only show konachan button and create homework folder when weeb
This commit is contained in:
@@ -46,7 +46,6 @@ Singleton {
|
|||||||
Quickshell.execDetached(["mkdir", "-p", `${favicons}`])
|
Quickshell.execDetached(["mkdir", "-p", `${favicons}`])
|
||||||
Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`])
|
Quickshell.execDetached(["bash", "-c", `rm -rf '${coverArt}'; mkdir -p '${coverArt}'`])
|
||||||
Quickshell.execDetached(["bash", "-c", `rm -rf '${booruPreviews}'; mkdir -p '${booruPreviews}'`])
|
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 '${latexOutput}'; mkdir -p '${latexOutput}'`])
|
||||||
Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`])
|
Quickshell.execDetached(["bash", "-c", `rm -rf '${cliphistDecode}'; mkdir -p '${cliphistDecode}'`])
|
||||||
Quickshell.execDetached(["mkdir", "-p", `${aiChats}`])
|
Quickshell.execDetached(["mkdir", "-p", `${aiChats}`])
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ ContentPage {
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
RippleButtonWithIcon {
|
RippleButtonWithIcon {
|
||||||
id: rndWallBtn
|
id: rndWallBtn
|
||||||
|
visible: Config.options.policies.weeb === 1
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
buttonRadius: Appearance.rounding.small
|
buttonRadius: Appearance.rounding.small
|
||||||
materialIcon: "wallpaper"
|
materialIcon: "wallpaper"
|
||||||
|
|||||||
@@ -23,6 +23,15 @@ Item {
|
|||||||
property var suggestionQuery: ""
|
property var suggestionQuery: ""
|
||||||
property var suggestionList: []
|
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 {
|
Connections {
|
||||||
target: Booru
|
target: Booru
|
||||||
function onTagSuggestion(query, suggestions) {
|
function onTagSuggestion(query, suggestions) {
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ ApplicationWindow {
|
|||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
RippleButtonWithIcon {
|
RippleButtonWithIcon {
|
||||||
id: rndWallBtn
|
id: rndWallBtn
|
||||||
|
visible: Config.options.policies.weeb === 1
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
buttonRadius: Appearance.rounding.small
|
buttonRadius: Appearance.rounding.small
|
||||||
materialIcon: "wallpaper"
|
materialIcon: "wallpaper"
|
||||||
|
|||||||
Reference in New Issue
Block a user