Skip to content

Commit

Permalink
🔀 Merge pull request #1476 from CrazyWolf13/fix_hotkeys
Browse files Browse the repository at this point in the history
[Fix] Hotkeys
  • Loading branch information
Lissy93 authored Feb 28, 2024
2 parents 417028b + 4f56ff6 commit dab3440
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/assets/locales/ar.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"home": {
"no-results": "لا نتائج للبحث",
"no-data": "لم يتم تكوين بيانات"
"no-data": "لا يوجد بيانات"
},
"search": {
"search-label": "بحث",
Expand Down Expand Up @@ -33,11 +33,11 @@
},
"config": {
"main-tab": "القائمة الرئيسية",
"view-config-tab": "مشاهدة ملف Config",
"edit-config-tab": "تحرير التكوين",
"view-config-tab": "مشاهده ملف الإعدادات",
"edit-config-tab": "تغير ملف الاع",
"custom-css-tab": "الأنماط المخصصة",
"heading": "خيارات الإعداد",
"download-config-button": "تنزيل Config",
"download-config-button": "تنزيل ملف الإعدادات",
"edit-config-button": "تحرير التكوين",
"edit-css-button": "تحرير CSS مخصص",
"cloud-sync-button": "قم بتمكين Cloud Sync",
Expand Down Expand Up @@ -84,7 +84,7 @@
"sign-in-welcome": "مرحبًا {username}!"
},
"updates": {
"app-version-note": "نسخة متهورة",
"app-version-note": "ملاحظة نسخة التطبيق",
"up-to-date": "حتى الآن",
"out-of-date": "التحديث متاح",
"unsupported-version-l1": "أنت تستخدم إصدارًا غير مدعوم من Dashy",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/ConfigHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ export const getCustomColors = () => {
* So that when the hotkey is pressed, the app/ service can be launched
*/
export const getCustomKeyShortcuts = () => {
const Accumulator = new ConfigAccumulator();
const results = [];
const sections = config.sections || [];
const sections = filterUserSections(Accumulator.sections()) || [];
sections.forEach((section) => {
const itemsWithHotKeys = section.items.filter(item => item.hotkey);
results.push(itemsWithHotKeys.map(item => ({ hotkey: item.hotkey, url: item.url })));
Expand Down

0 comments on commit dab3440

Please sign in to comment.