Skip to content

Commit

Permalink
Expose persistCachedTree to the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 17, 2024
1 parent 912f551 commit 668e854
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions webextensions/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,8 @@
"config_staticARIALabel_description": { "message": "*Please try checking this if your speech recognition system misses tab elements after some tab operations." },
"config_useCachedTree_label": { "message": "Optimize tree restoration with cache" },
"config_useCachedTree_description": { "message": "*Please try unchecking and re-checking this to refresh the cache, when the behavior around tree is unstable." },
"config_persistCachedTree_label": { "message": "Persist tree cache" },
"config_persistCachedTree_description": { "message": "*Initialization process at the browser startup may be optimized, but it will broat the size of browser's session file and increase disk I/O." },
"config_acceleratedTabCreation_label": { "message": "Accelerate operations around newly opened tabs (*NOTE: You'll see unstable behavior around tabs.)" },
"config_maximumAcceptableDelayForTabDuplication_before": { "message": "Abort tab duplication when it takes" },
"config_maximumAcceptableDelayForTabDuplication_after": { "message": "milliseconds or more." },
Expand Down
2 changes: 2 additions & 0 deletions webextensions/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@
"config_staticARIALabel_description": { "message": "※何らかのタブ操作のあとで音声認識システムがタブ要素を見失ってしまう場合、このチェックをONにしてください。" },
"config_useCachedTree_label": { "message": "キャッシュを使ってツリーの初期化を高速化する" },
"config_useCachedTree_description": { "message": "※キャッシュの不整合で動作が不安定になっている場合、このチェックをOFFにして再度ONにすることでキャッシュが刷新され状況が改善するかもしれません。" },
"config_persistCachedTree_label": { "message": "キャッシュを永続化する" },
"config_persistCachedTree_description": { "message": "※ブラウザー起動時やアドオン更新時などの初期化処理を短縮できますが、ブラウザーのセッションファイルが肥大化しディスクI/Oが増加します" },
"config_acceleratedTabCreation_label": { "message": "新しいタブが開かれた時の処理を高速化する(※動作が不安定になります)" },
"config_maximumAcceptableDelayForTabDuplication_before": { "message": "\u200b" },
"config_maximumAcceptableDelayForTabDuplication_after": { "message": "ミリ秒以内にタブの複製を完了できなかった場合は処理を中断する" },
Expand Down
5 changes: 5 additions & 0 deletions webextensions/background/browser-action-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1911,6 +1911,11 @@ const mItems = [
key: 'useCachedTree',
type: 'checkbox'
},
{
title: indent(2) + browser.i18n.getMessage('config_persistCachedTree_label'),
key: 'persistCachedTree',
type: 'checkbox'
},
{
title: indent() + browser.i18n.getMessage('config_supportTabsMultiselect_label'),
key: 'supportTabsMultiselect',
Expand Down
9 changes: 8 additions & 1 deletion webextensions/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,14 @@ <h1>__MSG_config_advanced_caption__</h1>
><input id="useCachedTree"
type="checkbox">
__MSG_config_useCachedTree_label__</label></p>
<p class="sub">__MSG_config_useCachedTree_description__</p>
<div class="sub">
<p>__MSG_config_useCachedTree_description__</p>
<p><label class="has-checkbox"
><input id="persistCachedTree"
type="checkbox">
__MSG_config_persistCachedTree_label__</label></p>
<p class="sub">__MSG_config_persistCachedTree_description__</p>
</div>
<div class="expert">
<p><label class="has-checkbox"
><input id="supportTabsMultiselect"
Expand Down

0 comments on commit 668e854

Please sign in to comment.