Move settings into a separate window, prepare YouAds component for a native rewrite

This commit is contained in:
Dark Steveneq
2025-10-13 13:30:03 +02:00
parent 362166cc1f
commit 1d312ca9d1
8 changed files with 158 additions and 213 deletions

View File

@@ -1,27 +1,14 @@
import QtQuick 6.8
import QtWebView 6.8
WebView {
implicitWidth: 600
implicitHeight: 150
visible: false
url: "https://youads.nonamesoft.xyz/ads/site"
settings.allowFileAccess: false
settings.javaScriptEnabled: false
settings.localContentCanAccessFileUrls: false
settings.localStorageEnabled: false
onLoadingChanged: function(loadRequest) {
visible = loadRequest.status == WebView.LoadSucceededStatus
}
Item {
function fetchAd() {}
Timer {
interval: 30 * 60 * 60
running: true
repeat: true
onTriggered: function() {
parent.reload()
parent.fetchAd()
}
}
}