This commit is contained in:
ItsLemmy
2025-11-01 09:52:08 -04:00
parent b36a2cad53
commit 371e1d522f
2 changed files with 5 additions and 12 deletions
+4 -12
View File
@@ -454,15 +454,11 @@ Singleton {
id: generateProcess
workingDirectory: Quickshell.shellDir
running: false
onExited: function (exitCode) {
if (exitCode !== 0) {
// Capture error output from stderr first, then stdout, or use fallback message
const errorMsg = (stderr.text && stderr.text.trim() !== "")
? stderr.text.trim()
: ((stdout.text && stdout.text.trim() !== "")
? stdout.text.trim()
: I18n.tr("toast.matugen.failed-general"))
const errorMsg = (stderr.text && stderr.text.trim() !== "") ? stderr.text.trim() : ((stdout.text && stdout.text.trim() !== "") ? stdout.text.trim() : I18n.tr("toast.matugen.failed-general"))
Logger.e("AppThemeService", "Matugen process failed with exit code:", exitCode)
if (stderr.text && stderr.text.trim() !== "") {
Logger.e("AppThemeService", "Matugen stderr:", stderr.text)
@@ -470,14 +466,10 @@ Singleton {
if (stdout.text && stdout.text.trim() !== "") {
Logger.e("AppThemeService", "Matugen stdout:", stdout.text)
}
ToastService.showError(
I18n.tr("toast.matugen.failed"),
errorMsg,
6000
)
ToastService.showError(I18n.tr("toast.matugen.failed"), errorMsg, 6000)
}
}
stdout: StdioCollector {
onStreamFinished: {
if (this.text) {
+1
View File
@@ -220,6 +220,7 @@ Loader {
bottomLeftRadius: Style.radiusL
bottomRightRadius: Style.radiusL
/*// Drop shadow effect
layer.enabled: true
layer.effect: MultiEffect {