Formatting

This commit is contained in:
quadbyte 2025-08-14 14:58:00 -04:00
parent 3f64bb1879
commit 151e2b6aaf
7 changed files with 869 additions and 840 deletions

View file

@ -82,10 +82,10 @@ Singleton {
data.timestamp = Time.timestamp
console.log("[GitHub] Saving data to cache file:", githubDataFile)
console.log("[GitHub] Data to save - version:", data.version, "contributors:", data.contributors.length)
// Ensure cache directory exists
Quickshell.execDetached(["mkdir", "-p", Settings.cacheDir])
Qt.callLater(() => {
// Use direct ID reference to the FileView
githubDataFileView.writeAdapter()
@ -147,7 +147,8 @@ Singleton {
console.log("[GitHub] Raw contributors response length:", response ? response.length : 0)
if (response && response.trim()) {
const data = JSON.parse(response)
console.log("[GitHub] Parsed contributors data type:", typeof data, "length:", Array.isArray(data) ? data.length : "not array")
console.log("[GitHub] Parsed contributors data type:", typeof data, "length:",
Array.isArray(data) ? data.length : "not array")
root.data.contributors = data || []
root.contributors = root.data.contributors
console.log("[GitHub] Contributors fetched from GitHub:", root.contributors.length)