mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
Autofmt
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -220,6 +220,7 @@ Loader {
|
||||
bottomLeftRadius: Style.radiusL
|
||||
bottomRightRadius: Style.radiusL
|
||||
|
||||
|
||||
/*// Drop shadow effect
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
|
||||
Reference in New Issue
Block a user