Move settings into a separate window, prepare YouAds component for a native rewrite
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user