about: added a way to enable debug mode

This commit is contained in:
Lemmy
2026-02-11 21:39:33 -05:00
parent ec4bfb1397
commit 5260e3b052
21 changed files with 89 additions and 7 deletions
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git-Commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Dieses Plugin ist bereits installiert",
"collision-custom-version-exists": "Eine benutzerdefinierte Version von \"{source}\" ist bereits installiert",
"collision-official-version-exists": "Die offizielle Version dieses Plugins ist bereits installiert",
"development-disable": "Entwicklungsmodus für dieses Plugin deaktivieren",
"development-enable": "Entwicklungsmodus für dieses Plugin aktivieren.",
"filter-downloaded": "Heruntergeladen",
"filter-not-downloaded": "Nicht heruntergeladen",
"filter-tags-description": "Plugins nach Kategorie oder Download-Status filtern.",
+3 -2
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git commit:",
@@ -1337,8 +1338,8 @@
"collision-already-installed": "This plugin is already installed",
"collision-custom-version-exists": "A custom version from \"{source}\" is already installed",
"collision-official-version-exists": "The official version of this plugin is already installed",
"debug-disable": "Disable debug mode for this plugin",
"debug-enable": "Enable debug mode for this plugin",
"development-disable": "Disable development mode for this plugin",
"development-enable": "Enable development mode for this plugin",
"filter-downloaded": "Downloaded",
"filter-not-downloaded": "Not Downloaded",
"filter-tags-description": "Filter plugins by category or download status.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Commit de Git:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Este plugin ya está instalado",
"collision-custom-version-exists": "Ya hay instalada una versión personalizada de \"{source}\"",
"collision-official-version-exists": "La versión oficial de este plugin ya está instalada",
"development-disable": "Desactivar el modo de desarrollo para este complemento",
"development-enable": "Habilitar el modo de desarrollo para este plugin.",
"filter-downloaded": "Descargado",
"filter-not-downloaded": "No descargado",
"filter-tags-description": "Filtrar plugins por categoría o estado de descarga.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Commit Git :",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Ce plugin est déjà installé",
"collision-custom-version-exists": "Une version personnalisée de \"{source}\" est déjà installée",
"collision-official-version-exists": "La version officielle de cette extension est déjà installée",
"development-disable": "Désactiver le mode développeur pour ce plugin",
"development-enable": "Activer le mode de développement pour ce plugin.",
"filter-downloaded": "Téléchargé",
"filter-not-downloaded": "Non téléchargé",
"filter-tags-description": "Filtrer les extensions par catégorie ou état de téléchargement.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Ez a bővítmény már telepítve van",
"collision-custom-version-exists": "Egyéni verzió a következő helyről: \"{source}\" már telepítve van",
"collision-official-version-exists": "A plugin hivatalos verziója már telepítve van",
"development-disable": "Fejlesztői mód kikapcsolása ehhez a beépülő modulhoz",
"development-enable": "Fejlesztői mód engedélyezése ehhez a beépülőhöz.",
"filter-downloaded": "Letöltött",
"filter-not-downloaded": "Nincs letöltve",
"filter-tags-description": "Bővítmények szűrése kategória vagy letöltési állapot szerint.",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "{count}人の<b>素晴らしい</b>コントリビューターに感謝!",
"contributors-description-plural": "{count}人の<b>素晴らしい</b>コントリビューターに感謝!",
"copy-info": "情報をコピー",
"debug-enabled": "デバッグモードが有効です",
"info-copied": "クリップボードにコピーしました",
"noctalia-desc": "Wayland のために丁寧に作り込まれた、Quickshell 製の洗練されたミニマルなデスクトップシェル。",
"noctalia-git-commit": "Git コミット:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "このプラグインはすでにインストールされています",
"collision-custom-version-exists": "「{source}」 発 の カスタム版 は 既に インストール されています",
"collision-official-version-exists": "このプラグインの公式バージョンはすでにインストールされています",
"development-disable": "このプラグインの開発者モードを無効にする",
"development-enable": "このプラグインの開発モードを有効にする。",
"filter-downloaded": "ダウンロード済み",
"filter-not-downloaded": "未ダウンロード",
"filter-tags-description": "カテゴリーまたはダウンロード状況でプラグインを絞り込む。",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "{count}명의 <b>멋진</b> 기여자에게 감사를 전합니다!",
"contributors-description-plural": "{count}명의 <b>멋진</b> 기여자들에게 감사를 전합니다!",
"copy-info": "정보 복사",
"debug-enabled": "디버그 모드 활성화됨",
"info-copied": "정보가 클립보드에 복사됨",
"noctalia-desc": "Wayland를 위해 세심하게 제작된 매끄럽고 미니멀한 데스크톱 셸로, Quickshell로 빌드되었습니다.",
"noctalia-git-commit": "Git 커밋:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "이 플러그인은 이미 설치되어 있습니다",
"collision-custom-version-exists": "\"{source}\"의 사용자 지정 버전이 이미 설치되어 있습니다",
"collision-official-version-exists": "이 플러그인의 공식 버전이 이미 설치되어 있습니다",
"development-disable": "이 플러그인의 개발 모드를 비활성화",
"development-enable": "이 플러그인에 대한 개발 모드를 활성화합니다.",
"filter-downloaded": "다운로드됨",
"filter-not-downloaded": "다운로드되지 않음",
"filter-tags-description": "카테고리 또는 다운로드 상태별로 플러그인을 필터링합니다.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Deze plugin is al geïnstalleerd",
"collision-custom-version-exists": "Er is al een aangepaste versie van \"{source}\" geïnstalleerd",
"collision-official-version-exists": "De officiële versie van deze plugin is al geïnstalleerd",
"development-disable": "Ontwikkelingsmodus voor deze plug-in uitschakelen",
"development-enable": "Ontwikkelingsmodus inschakelen voor deze plug-in.",
"filter-downloaded": "Gedownload",
"filter-not-downloaded": "Niet gedownload",
"filter-tags-description": "Filter plug-ins op categorie of downloadstatus.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Ta wtyczka jest już zainstalowana",
"collision-custom-version-exists": "Niestandardowa wersja z \"{source}\" jest już zainstalowana",
"collision-official-version-exists": "Oficjalna wersja tej wtyczki jest już zainstalowana",
"development-disable": "Wyłącz tryb deweloperski dla tej wtyczki",
"development-enable": "Włącz tryb deweloperski dla tej wtyczki.",
"filter-downloaded": "Pobrane",
"filter-not-downloaded": "Niepobrane",
"filter-tags-description": "Filtruj wtyczki według kategorii lub statusu pobierania.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Commit Git:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Este plugin já está instalado",
"collision-custom-version-exists": "Uma versão personalizada de \"{source}\" já está instalada",
"collision-official-version-exists": "A versão oficial deste plugin já está instalada",
"development-disable": "Desativar o modo de desenvolvimento para este plugin",
"development-enable": "Ativar o modo de desenvolvimento para este plugin.",
"filter-downloaded": "Baixado",
"filter-not-downloaded": "Não baixado",
"filter-tags-description": "Filtrar plugins por categoria ou estado de download.",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "Благодарим нашего <b>замечательного</b> участника: {count}!",
"contributors-description-plural": "Благодарим наших <b>замечательных</b> участников: {count}!",
"copy-info": "Копировать информацию",
"debug-enabled": "Режим отладки включен",
"info-copied": "Информация скопирована в буфер обмена",
"noctalia-desc": "Изящная и минималистичная оболочка рабочего стола, тщательно разработанная для Wayland, созданная с помощью Quickshell.",
"noctalia-git-commit": "Git коммит:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Этот плагин уже установлен",
"collision-custom-version-exists": "Пользовательская версия из \"{source}\" уже установлена",
"collision-official-version-exists": "Официальная версия этого плагина уже установлена",
"development-disable": "Отключить режим разработки для этого плагина",
"development-enable": "Включить режим разработки для этого плагина.",
"filter-downloaded": "Скачано",
"filter-not-downloaded": "Не загружено",
"filter-tags-description": "Фильтровать плагины по категории или статусу загрузки.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git-commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Denna insticksmodul är redan installerad",
"collision-custom-version-exists": "En anpassad version från \"{source}\"är redan installerad",
"collision-official-version-exists": "Den officiella versionen av denna insticksmodul är redan installerad",
"development-disable": "Inaktivera utvecklingsläge för denna plugin",
"development-enable": "Aktivera utvecklingsläge för denna plugin.",
"filter-downloaded": "Hämtade",
"filter-not-downloaded": "Inte hämtade",
"filter-tags-description": "Filtrera insticksmoduler efter kategori eller hämtningsstatus.",
+3
View File
@@ -669,6 +669,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-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.",
"noctalia-git-commit": "Git commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Bu eklenti zaten yüklü",
"collision-custom-version-exists": "\"{source}\" kaynağından özel bir sürüm zaten yüklü",
"collision-official-version-exists": "Bu eklentinin resmi sürümü zaten yüklü",
"development-disable": "Bu eklenti için geliştirme modunu devre dışı bırak",
"development-enable": "Bu eklenti için geliştirme modunu etkinleştir.",
"filter-downloaded": "İndirildi",
"filter-not-downloaded": "İndirilmedi",
"filter-tags-description": "Eklentileri kategoriye veya indirme durumuna göre filtrele.",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "Подяка нашому {count} <b>чудовому</b> учаснику!",
"contributors-description-plural": "Подяка нашим {count} <b>чудовим</b> учасникам!",
"copy-info": "Копіювати інформацію",
"debug-enabled": "Режим налагодження увімкнено",
"info-copied": "Інформацію скопійовано до буфера обміну",
"noctalia-desc": "Елегантна та мінімалістична оболонка робочого столу, ретельно створена для Wayland, побудована на Quickshell.",
"noctalia-git-commit": "Git коміт:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "Цей плагін вже встановлено",
"collision-custom-version-exists": "Вже встановлено власну версію з \"{source}\"",
"collision-official-version-exists": "Офіційна версія цього плагіна вже встановлена",
"development-disable": "Вимкнути режим розробки для цього плагіна",
"development-enable": "Увімкнути режим розробки для цього плагіна.",
"filter-downloaded": "Завантажено",
"filter-not-downloaded": "Не завантажено",
"filter-tags-description": "Фільтрувати плагіни за категорією або статусом завантаження.",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "向我们 {count} 位<b>超棒的</b>贡献者致敬!",
"contributors-description-plural": "向我们 {count} 位<b>超棒的</b>贡献者致敬!",
"copy-info": "复制信息",
"debug-enabled": "调试模式已启用",
"info-copied": "信息已复制到剪贴板",
"noctalia-desc": "一款为 Wayland 精心打造的时尚简约桌面 shell,基于 Quickshell 构建。",
"noctalia-git-commit": "Git 提交:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "此插件已安装",
"collision-custom-version-exists": "来自“{source}”的自定义版本已安装",
"collision-official-version-exists": "此插件的官方版本已安装",
"development-disable": "禁用此插件的开发模式",
"development-enable": "为此插件启用开发模式。",
"filter-downloaded": "已下载",
"filter-not-downloaded": "未下载",
"filter-tags-description": "按类别或下载状态筛选插件。",
+3
View File
@@ -669,6 +669,7 @@
"contributors-description": "特別感謝我們這{count}位<b>超讚</b>的貢獻者!!",
"contributors-description-plural": "特別感謝我們這{count}位<b>超讚</b>的貢獻者!!",
"copy-info": "複製資訊",
"debug-enabled": "偵錯模式已啟用",
"info-copied": "資訊已複製至剪貼簿",
"noctalia-desc": "一個為 Wayland 精心打造, 兼具簡潔及流暢的桌面介面, 使用 Quickshell 建置",
"noctalia-git-commit": "Git commit:",
@@ -1337,6 +1338,8 @@
"collision-already-installed": "這個模組已經安裝過了",
"collision-custom-version-exists": "已經安裝了來自 \"{source}\" 的自訂版本",
"collision-official-version-exists": "已經安裝了這個模組的官方版本",
"development-disable": "停用此插件的開發者模式",
"development-enable": "為此外掛程式啟用開發模式。",
"filter-downloaded": "已下載",
"filter-not-downloaded": "未下載",
"filter-tags-description": "以分類或下載狀態篩選外掛模組",
+2 -1
View File
@@ -202,7 +202,8 @@
"wallhavenResolutionMode": "atleast",
"wallhavenResolutionWidth": "",
"wallhavenResolutionHeight": "",
"sortOrder": "name"
"sortOrder": "name",
"favorites": []
},
"appLauncher": {
"enableClipboardHistory": false,
+1 -1
View File
@@ -26,7 +26,7 @@ Singleton {
*/
readonly property alias data: adapter // Used to access via Settings.data.xxx.yyy
readonly property int settingsVersion: 53
readonly property bool isDebug: Quickshell.env("NOCTALIA_DEBUG") === "1"
property bool isDebug: Quickshell.env("NOCTALIA_DEBUG") === "1"
readonly property string shellName: "noctalia"
readonly property string configDir: Quickshell.env("NOCTALIA_CONFIG_DIR") || (Quickshell.env("XDG_CONFIG_HOME") || Quickshell.env("HOME") + "/.config") + "/" + shellName + "/"
readonly property string cacheDir: Quickshell.env("NOCTALIA_CACHE_DIR") || (Quickshell.env("XDG_CACHE_HOME") || Quickshell.env("HOME") + "/.cache") + "/" + shellName + "/"
@@ -365,6 +365,39 @@ ColumnLayout {
mipmap: true
smooth: true
Layout.alignment: Qt.AlignBottom
rotation: Settings.isDebug ? 180 : 0
Behavior on rotation {
NumberAnimation {
duration: Style.animationSlowest
easing.type: Easing.OutBack
}
}
property int debugTapCount: 0
Timer {
id: debugTapTimer
interval: 5000
onTriggered: parent.debugTapCount = 0
}
MouseArea {
anchors.fill: parent
onClicked: {
if (Settings.isDebug)
return;
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"));
}
}
}
}
ColumnLayout {
@@ -208,10 +208,11 @@ ColumnLayout {
NIconButton {
icon: PluginService.isPluginHotReloadEnabled(modelData.id) ? "bug-filled" : "bug-off"
tooltipText: PluginService.isPluginHotReloadEnabled(modelData.id) ? I18n.tr("panels.plugins.debug-disable") : I18n.tr("panels.plugins.debug-enable")
tooltipText: PluginService.isPluginHotReloadEnabled(modelData.id) ? I18n.tr("panels.plugins.development-disable") : I18n.tr("panels.plugins.development-enable")
baseSize: Style.baseWidgetSize * 0.7
enabled: modelData.enabled && !Settings.isDebug
enabled: modelData.enabled
onClicked: PluginService.togglePluginHotReload(modelData.id)
visible: Settings.isDebug
}
NIconButton {
+2 -1
View File
@@ -1987,7 +1987,8 @@ Singleton {
// Toggle the hot reload state of a certain plugin
function togglePluginHotReload(pluginId) {
// If we have hot reload completely enabled just return
if (root.hotReloadEnabled) return;
if (root.hotReloadEnabled)
return;
const index = root.pluginHotReloadEnabled.indexOf(pluginId);
if (index === -1) {