Skip to content

Commit e8c526a

Browse files
committed
fix: downgrade a bunch error messages
1 parent 83b2e58 commit e8c526a

7 files changed

+15
-13
lines changed

package/contents/ui/configForeground.qml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ KCM.SimpleKCM {
2525
Component.onCompleted: {
2626
// ignore 1.2.0- old config format
2727
forceFgConfig = Utils.clearOldWidgetConfig(config.widgets)
28-
console.error(JSON.stringify(forceFgConfig, null, null))
28+
console.log(JSON.stringify(forceFgConfig, null, null))
2929
initWidgets()
3030
updateWidgetsModel()
3131
}
@@ -75,9 +75,9 @@ KCM.SimpleKCM {
7575
if (cmd.startsWith("cat")) {
7676
const content = stdout.trim()
7777
try {
78-
console.error(content)
78+
console.log(content)
7979
const newConfig = JSON.parse(content)
80-
importConfig(newConfig)
80+
root.importConfig(newConfig)
8181
} catch (e) {
8282
console.error(e)
8383
}

package/contents/ui/configGlobalWidgetOverrides.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ KCM.SimpleKCM {
7272
const content = stdout.trim().split("\n")
7373
try {
7474
const newConfig = JSON.parse(content)
75-
importConfig(newConfig)
75+
root.importConfig(newConfig)
7676
} catch (e) {
7777
console.error(e)
7878
}
@@ -269,7 +269,7 @@ KCM.SimpleKCM {
269269
onAddOverride: (preset, index) => {
270270
if (!loaded) return
271271
let asocIndex = Utils.getWidgetConfigIdx(id, name, associationsModel)
272-
console.error("asocIndex", asocIndex)
272+
console.log("asocIndex", asocIndex)
273273
if (asocIndex === -1) {
274274
associationsModel.push({
275275
"id": id,

package/contents/ui/configPresetAutoload.qml

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ KCM.SimpleKCM {
4949
Connections {
5050
target: runCommand
5151
function onExited(cmd, exitCode, exitStatus, stdout, stderr) {
52-
console.error(cmd, exitCode, exitStatus, stdout, stderr)
53-
if (exitCode!==0) return
52+
if (exitCode!==0) {
53+
console.error(cmd, exitCode, exitStatus, stdout, stderr)
54+
return
55+
}
5456
// console.log(stdout);
5557
if(cmd === listPresetsCmd) {
5658
if (stdout.length === 0) return
@@ -68,7 +70,7 @@ KCM.SimpleKCM {
6870
let name = path.split("/")
6971
name = name[name.length-1]
7072
const dir = parts[1]
71-
console.error(dir)
73+
console.log(dir)
7274
const preset = {
7375
"name": name,
7476
"value": dir,

package/contents/ui/configPresetWidgetOverrides.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ KCM.SimpleKCM {
238238
onAddOverride: (preset, index) => {
239239
if (!loaded) return
240240
let asocIndex = Utils.getWidgetConfigIdx(id, name, associationsModel)
241-
console.error("asocIndex", asocIndex)
241+
console.log("asocIndex", asocIndex)
242242
if (asocIndex === -1) {
243243
associationsModel.push({
244244
"id": id,

package/contents/ui/configPresets.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ KCM.SimpleKCM {
176176
console.error(`Detected unsafe deletion of '${path}' aborting.`)
177177
return
178178
}
179-
console.error("rm -r '" + path + "'" )
179+
console.warn("rm -r '" + path + "'" )
180180
runCommand.run("rm -r '" + path + "'" )
181181
}
182182

package/contents/ui/configStockPanelSettings.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ KCM.SimpleKCM {
2121
// fix 1.0.0 old config format
2222
if (loaded) return
2323
if (typeof config.position !== "object") {
24-
console.error("fix 1.0.0 old config format")
24+
console.warn("fix 1.0.0 old config format")
2525
config = Globals.baseStockPanelSettings
2626
updateConfig()
2727
}

package/contents/ui/configUnifiedBackground.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ KCM.SimpleKCM {
2020
Component.onCompleted: {
2121
// ignore 1.2.0- old config format
2222
unifiedBackgroundSettings = Utils.clearOldWidgetConfig(config.unifiedBackground)
23-
console.error(JSON.stringify(unifiedBackgroundSettings, null, null))
23+
console.log(JSON.stringify(unifiedBackgroundSettings, null, null))
2424
initWidgets()
2525
updateWidgetsModel()
2626
}
@@ -32,7 +32,7 @@ KCM.SimpleKCM {
3232
const id = widget.id
3333
const name = widget.name
3434
const unifyBgType = widget.unifyBgType
35-
console.error(name, unifyBgType)
35+
console.log(name, unifyBgType)
3636

3737
const cfgIndex = Utils.getWidgetConfigIdx(id, name, unifiedBackgroundSettings)
3838
if (unifyBgType != 0) {

0 commit comments

Comments
 (0)