mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
GitHub removed some unecessary code
This commit is contained in:
@@ -14,11 +14,6 @@ ColumnLayout {
|
||||
property string currentVersion: "v1.2.1" // Fallback version
|
||||
property var contributors: GitHub.contributors
|
||||
|
||||
Component.onCompleted: {
|
||||
// Initialize the GitHub service
|
||||
GitHub.init()
|
||||
}
|
||||
|
||||
spacing: 0
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
@@ -31,9 +31,6 @@ Singleton {
|
||||
}
|
||||
onLoadFailed: function (error) {
|
||||
if (error.toString().includes("No such file") || error === 2) {
|
||||
// File doesn't exist, create it with default values
|
||||
console.log("[GitHub] Creating new cache file")
|
||||
writeAdapter()
|
||||
// Fetch data after a short delay to ensure file is created
|
||||
Qt.callLater(() => {
|
||||
fetchFromGitHub()
|
||||
@@ -50,11 +47,6 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------
|
||||
function init() {// does nothing but ensure the singleton is created
|
||||
// do not remove
|
||||
}
|
||||
|
||||
// --------------------------------
|
||||
function loadFromCache() {
|
||||
const now = Time.timestamp
|
||||
|
||||
Reference in New Issue
Block a user