mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
plugins+settings: added a way disable Settings.isDebug by putting the noctalia logo back up. This will also remove all plugins file watchers.
This commit is contained in:
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Ein Dankeschön an unseren {count} <b>großartigen</b> Mitwirkenden!",
|
||||
"contributors-description-plural": "Ein Dankeschön an unsere {count} <b>großartigen</b> Mitwirkenden!",
|
||||
"copy-info": "Informationen kopieren",
|
||||
"debug-disabled": "Debug-Modus deaktiviert",
|
||||
"debug-enabled": "Debug-Modus aktiviert",
|
||||
"info-copied": "Info in die Zwischenablage kopiert",
|
||||
"noctalia-desc": "Eine elegante und minimalistische Desktop-Shell, sorgfältig für Wayland entwickelt, gebaut mit Quickshell.",
|
||||
@@ -1038,11 +1039,11 @@
|
||||
"keybinds-conflict-description": "Die Tastenkombination ist bereits {action} zugewiesen.",
|
||||
"keybinds-conflict-title": "Tastenbelegungskonflikt",
|
||||
"keybinds-description": "Globale Navigationstasten für Panels und Launcher konfigurieren.",
|
||||
"keybinds-down": "Nach unten verschieben",
|
||||
"keybinds-down": "Nach unten",
|
||||
"keybinds-enter": "Bestätigen / Aktion",
|
||||
"keybinds-escape": "Schließen / Zurück",
|
||||
"keybinds-left": "Links verschieben",
|
||||
"keybinds-right": "Rechts bewegen",
|
||||
"keybinds-left": "Nach links",
|
||||
"keybinds-right": "Nach rechts",
|
||||
"keybinds-title": "Navigations-Tastenkombinationen",
|
||||
"keybinds-up": "Nach oben",
|
||||
"language-desc": "Ändern Sie die Sprache von Noctalia.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Shout-out to our {count} <b>awesome</b> contributor!",
|
||||
"contributors-description-plural": "Shout-out to our {count} <b>awesome</b> contributors!",
|
||||
"copy-info": "Copy info",
|
||||
"debug-disabled": "Debug mode disabled",
|
||||
"debug-enabled": "Debug mode enabled",
|
||||
"info-copied": "Info copied to clipboard",
|
||||
"noctalia-desc": "A sleek and minimal desktop shell thoughtfully crafted for Wayland, built with Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "¡Un saludo a nuestro <b>increíble</b> colaborador número {count}!",
|
||||
"contributors-description-plural": "¡Un saludo a nuestros {count} <b>increíbles</b> colaboradores!",
|
||||
"copy-info": "Copiar información",
|
||||
"debug-disabled": "Modo de depuración deshabilitado",
|
||||
"debug-enabled": "Modo de depuración activado",
|
||||
"info-copied": "Información copiada al portapapeles",
|
||||
"noctalia-desc": "Un shell de escritorio elegante y minimalista cuidadosamente diseñado para Wayland, construido con Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Un grand merci à notre {count} <b>super</b> contributeur !",
|
||||
"contributors-description-plural": "Un grand merci à nos {count} <b>super</b> contributeurs !",
|
||||
"copy-info": "Copier les informations",
|
||||
"debug-disabled": "Mode débogage désactivé",
|
||||
"debug-enabled": "Mode débogage activé",
|
||||
"info-copied": "Info copiée dans le presse-papiers",
|
||||
"noctalia-desc": "Un shell de bureau élégant et minimaliste, conçu avec soin pour Wayland et bâti avec Quickshell.",
|
||||
@@ -1041,7 +1042,7 @@
|
||||
"keybinds-down": "Déplacer vers le bas",
|
||||
"keybinds-enter": "Confirmer / Action",
|
||||
"keybinds-escape": "Fermer / Retour",
|
||||
"keybinds-left": "Déplacer à Gauche",
|
||||
"keybinds-left": "Déplacer à gauche",
|
||||
"keybinds-right": "Déplacer à droite",
|
||||
"keybinds-title": "Raccourcis Clavier de Navigation",
|
||||
"keybinds-up": "Déplacer vers le haut",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Köszönet a(z) {count} <b>fantasztikus</b> közreműködőnknek!",
|
||||
"contributors-description-plural": "Köszönet a(z) {count} <b>fantasztikus</b> közreműködőnknek!",
|
||||
"copy-info": "Információk másolása",
|
||||
"debug-disabled": "Hibakeresési mód kikapcsolva",
|
||||
"debug-enabled": "Hibakeresési mód engedélyezve",
|
||||
"info-copied": "Információ a vágólapra másolva",
|
||||
"noctalia-desc": "Egy elegáns és minimalista asztali felület, Waylandra tervezve, Quickshell-en alapulva.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "{count}人の<b>素晴らしい</b>コントリビューターに感謝!",
|
||||
"contributors-description-plural": "{count}人の<b>素晴らしい</b>コントリビューターに感謝!",
|
||||
"copy-info": "情報をコピー",
|
||||
"debug-disabled": "デバッグモードが無効になりました",
|
||||
"debug-enabled": "デバッグモードが有効です",
|
||||
"info-copied": "クリップボードにコピーしました",
|
||||
"noctalia-desc": "Wayland のために丁寧に作り込まれた、Quickshell 製の洗練されたミニマルなデスクトップシェル。",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "{count}명의 <b>멋진</b> 기여자에게 감사를 전합니다!",
|
||||
"contributors-description-plural": "{count}명의 <b>멋진</b> 기여자들에게 감사를 전합니다!",
|
||||
"copy-info": "정보 복사",
|
||||
"debug-disabled": "디버그 모드 비활성화됨",
|
||||
"debug-enabled": "디버그 모드 활성화됨",
|
||||
"info-copied": "정보가 클립보드에 복사됨",
|
||||
"noctalia-desc": "Wayland를 위해 세심하게 제작된 매끄럽고 미니멀한 데스크톱 셸로, Quickshell로 빌드되었습니다.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Een shout-out naar onze {count} <b>geweldige</b> bijdrager!",
|
||||
"contributors-description-plural": "Een shout-out naar onze {count} <b>geweldige</b> bijdragers!",
|
||||
"copy-info": "Kopieer info",
|
||||
"debug-disabled": "Foutopsporingsmodus uitgeschakeld",
|
||||
"debug-enabled": "Foutopsporingsmodus ingeschakeld",
|
||||
"info-copied": "Info gekopieerd naar klembord",
|
||||
"noctalia-desc": "Een strakke en minimale desktopshell, met zorg gemaakt voor Wayland en gebouwd met Quickshell.",
|
||||
@@ -1038,13 +1039,13 @@
|
||||
"keybinds-conflict-description": "De toetscombinatie is al toegewezen aan {action}.",
|
||||
"keybinds-conflict-title": "Toetsencombinatieconflict",
|
||||
"keybinds-description": "Globale navigatietoetsen voor panelen en de starter configureren.",
|
||||
"keybinds-down": "Naar beneden verplaatsen",
|
||||
"keybinds-down": "Omlaag",
|
||||
"keybinds-enter": "Bevestigen / Actie",
|
||||
"keybinds-escape": "Sluiten / Terug",
|
||||
"keybinds-left": "Naar links verplaatsen",
|
||||
"keybinds-right": "Naar rechts verplaatsen",
|
||||
"keybinds-left": "Naar links",
|
||||
"keybinds-right": "Naar rechts",
|
||||
"keybinds-title": "Navigatietoetsencombinaties",
|
||||
"keybinds-up": "Omhoog verplaatsen",
|
||||
"keybinds-up": "Omhoog",
|
||||
"language-desc": "Kies je voorkeurstaal voor de applicatie.",
|
||||
"language-select-auto-detect": "Automatisch",
|
||||
"language-select-description": "Selecteer de taal die in de interface van de applicatie wordt gebruikt.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Podziękowania dla naszego {count} <b>niesamowitego</b> współtwórcy!",
|
||||
"contributors-description-plural": "Podziękowania dla naszych {count} <b>niesamowitych</b> współtwórców!",
|
||||
"copy-info": "Kopiuj informacje",
|
||||
"debug-disabled": "Tryb debugowania wyłączony",
|
||||
"debug-enabled": "Tryb debugowania włączony",
|
||||
"info-copied": "Informacje skopiowane do schowka",
|
||||
"noctalia-desc": "Elegancka i minimalistyczna powłoka pulpitu stworzona dla Wayland, zbudowana w Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Agradecimentos ao nosso <b>incrível</b> colaborador!",
|
||||
"contributors-description-plural": "Agradecimentos aos nossos {count} <b>incríveis</b> colaboradores!",
|
||||
"copy-info": "Copiar informações",
|
||||
"debug-disabled": "Modo de depuração desativado",
|
||||
"debug-enabled": "Modo de depuração ativado",
|
||||
"info-copied": "Informação copiada para a área de transferência",
|
||||
"noctalia-desc": "Um shell de desktop elegante e minimalista, cuidadosamente criado para Wayland, construído com Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Благодарим нашего <b>замечательного</b> участника: {count}!",
|
||||
"contributors-description-plural": "Благодарим наших <b>замечательных</b> участников: {count}!",
|
||||
"copy-info": "Копировать информацию",
|
||||
"debug-disabled": "Режим отладки отключен",
|
||||
"debug-enabled": "Режим отладки включен",
|
||||
"info-copied": "Информация скопирована в буфер обмена",
|
||||
"noctalia-desc": "Изящная и минималистичная оболочка рабочего стола, тщательно разработанная для Wayland, созданная с помощью Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Tack till våra {count} <b>fantastiska</b> bidragsgivare!",
|
||||
"contributors-description-plural": "Tack till våra {count} <b>fantastiska</b> bidragsgivare!",
|
||||
"copy-info": "Kopiera info",
|
||||
"debug-disabled": "Felsökningsläge inaktiverat",
|
||||
"debug-enabled": "Felsökningsläge aktiverat",
|
||||
"info-copied": "Info kopierad till urklipp",
|
||||
"noctalia-desc": "Ett elegant och minimalistiskt skrivbordsskal som är noggrant utformat för Wayland och byggt med Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "{count} <b>harika</b> katılımcımıza <b>teşekkürler</b>!",
|
||||
"contributors-description-plural": "{count} <b>harika</b> katılımcımıza <b>teşekkürler</b>!",
|
||||
"copy-info": "Bilgileri kopyala",
|
||||
"debug-disabled": "Hata ayıklama modu devre dışı bırakıldı",
|
||||
"debug-enabled": "Hata ayıklama modu etkinleştirildi",
|
||||
"info-copied": "Bilgi panoya kopyalandı",
|
||||
"noctalia-desc": "Wayland için düşünülmüş, Quickshell ile inşa edilmiş şık ve minimal masaüstü kabuğu.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "Подяка нашому {count} <b>чудовому</b> учаснику!",
|
||||
"contributors-description-plural": "Подяка нашим {count} <b>чудовим</b> учасникам!",
|
||||
"copy-info": "Копіювати інформацію",
|
||||
"debug-disabled": "Режим налагодження вимкнено",
|
||||
"debug-enabled": "Режим налагодження увімкнено",
|
||||
"info-copied": "Інформацію скопійовано до буфера обміну",
|
||||
"noctalia-desc": "Елегантна та мінімалістична оболонка робочого столу, ретельно створена для Wayland, побудована на Quickshell.",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "向我们 {count} 位<b>超棒的</b>贡献者致敬!",
|
||||
"contributors-description-plural": "向我们 {count} 位<b>超棒的</b>贡献者致敬!",
|
||||
"copy-info": "复制信息",
|
||||
"debug-disabled": "调试模式已禁用",
|
||||
"debug-enabled": "调试模式已启用",
|
||||
"info-copied": "信息已复制到剪贴板",
|
||||
"noctalia-desc": "一款为 Wayland 精心打造的时尚简约桌面 shell,基于 Quickshell 构建。",
|
||||
|
||||
@@ -673,6 +673,7 @@
|
||||
"contributors-description": "特別感謝我們這{count}位<b>超讚</b>的貢獻者!!",
|
||||
"contributors-description-plural": "特別感謝我們這{count}位<b>超讚</b>的貢獻者!!",
|
||||
"copy-info": "複製資訊",
|
||||
"debug-disabled": "偵錯模式已停用",
|
||||
"debug-enabled": "偵錯模式已啟用",
|
||||
"info-copied": "資訊已複製至剪貼簿",
|
||||
"noctalia-desc": "一個為 Wayland 精心打造, 兼具簡潔及流暢的桌面介面, 使用 Quickshell 建置",
|
||||
|
||||
@@ -385,16 +385,19 @@ ColumnLayout {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (Settings.isDebug)
|
||||
return;
|
||||
if (parent.debugTapCount === 0)
|
||||
if (parent.debugTapCount === 0) {
|
||||
debugTapTimer.restart();
|
||||
}
|
||||
parent.debugTapCount++;
|
||||
if (parent.debugTapCount >= 8) {
|
||||
parent.debugTapCount = 0;
|
||||
debugTapTimer.stop();
|
||||
Settings.isDebug = true;
|
||||
ToastService.showNotice("Debug", I18n.tr("panels.about.debug-enabled"));
|
||||
Settings.isDebug = !Settings.isDebug;
|
||||
if (Settings.isDebug) {
|
||||
ToastService.showNotice("Debug", I18n.tr("panels.about.debug-enabled"));
|
||||
} else {
|
||||
ToastService.showNotice("Debug", I18n.tr("panels.about.debug-disabled"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,6 +92,23 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// When debug mode is disabled, tear down all hot reload watchers
|
||||
Connections {
|
||||
target: Settings
|
||||
|
||||
function onIsDebugChanged() {
|
||||
if (!Settings.isDebug && root.pluginHotReloadEnabled.length > 0) {
|
||||
Logger.i("PluginService", "Debug mode disabled, removing all hot reload watchers");
|
||||
// Remove watchers for all hot-reload-enabled plugins
|
||||
var plugins = root.pluginHotReloadEnabled.slice(); // copy since we mutate
|
||||
for (var i = 0; i < plugins.length; i++) {
|
||||
removePluginFileWatcher(plugins[i]);
|
||||
}
|
||||
root.pluginHotReloadEnabled = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Listen for language changes to reload plugin translations
|
||||
Connections {
|
||||
target: I18n
|
||||
|
||||
Reference in New Issue
Block a user