reloading menus for addtags is now considering addtags_api: prefs_init.add_tags_use_specific_integration. see #438
This commit is contained in:
parent
005e697e9c
commit
e2c67a1c5e
1 changed files with 10 additions and 2 deletions
|
|
@ -83,6 +83,7 @@ taWorkingStatus.taLog = taLog;
|
|||
|
||||
let special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: prefs_init.add_tags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: doGetSparkFeature(prefs_init.get_calendar_event),
|
||||
get_task: doGetSparkFeature(prefs_init.get_task),
|
||||
is_chatgpt_web: (prefs_init.connection_type === "chatgpt_web")
|
||||
|
|
@ -173,6 +174,7 @@ async function _reload_menus() {
|
|||
let getTask = doGetSparkFeature(prefs_reload.get_task);
|
||||
const special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: prefs_reload.add_tags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: getCalendarEvent,
|
||||
get_task: getTask,
|
||||
is_chatgpt_web: (prefs_reload.connection_type === "chatgpt_web")
|
||||
|
|
@ -790,7 +792,9 @@ async function reload_pref_init(){
|
|||
dynamic_menu_force_enter: prefs_default.dynamic_menu_force_enter,
|
||||
add_tags_context_menu: prefs_default.add_tags_context_menu,
|
||||
spamfilter_context_menu: prefs_default.spamfilter_context_menu,
|
||||
add_tags_use_specific_integration: prefs_default.add_tags_use_specific_integration,
|
||||
add_tags_connection_type: prefs_default.add_tags_connection_type,
|
||||
spamfilter_use_specific_integration: prefs_default.spamfilter_use_specific_integration,
|
||||
spamfilter_connection_type: prefs_default.spamfilter_connection_type
|
||||
});
|
||||
_process_incoming = prefs_init.add_tags_auto || prefs_init.spamfilter;
|
||||
|
|
@ -810,6 +814,7 @@ function setupStorageChangeListener() {
|
|||
let getTask = doGetSparkFeature(prefs_init.get_task);
|
||||
const special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: newTags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: getCalendarEvent,
|
||||
get_task: getTask,
|
||||
is_chatgpt_web: (prefs_init.connection_type === "chatgpt_web")
|
||||
|
|
@ -824,6 +829,7 @@ function setupStorageChangeListener() {
|
|||
let getTask = doGetSparkFeature(prefs_init.get_task);
|
||||
const special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: prefs_init.add_tags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: getCalendarEvent,
|
||||
get_task: getTask,
|
||||
is_chatgpt_web: (prefs_init.connection_type === "chatgpt_web")
|
||||
|
|
@ -838,6 +844,7 @@ function setupStorageChangeListener() {
|
|||
let getTask = doGetSparkFeature(newTask);
|
||||
const special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: prefs_init.add_tags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: getCalendarEvent,
|
||||
get_task: getTask,
|
||||
is_chatgpt_web: (prefs_init.connection_type === "chatgpt_web")
|
||||
|
|
@ -852,6 +859,7 @@ function setupStorageChangeListener() {
|
|||
let getTask = doGetSparkFeature(prefs_init.get_task);
|
||||
const special_prompts_ids = getActiveSpecialPromptsIDs({
|
||||
addtags: prefs_init.add_tags,
|
||||
addtags_api: prefs_init.add_tags_use_specific_integration,
|
||||
get_calendar_event: getCalendarEvent,
|
||||
get_task: getTask,
|
||||
is_chatgpt_web: (newConnectionType === "chatgpt_web")
|
||||
|
|
@ -953,12 +961,12 @@ function removeContextMenu(menu_id) {
|
|||
}
|
||||
|
||||
// Add Context menu: Add tags
|
||||
if(prefs_init.add_tags && prefs_init.add_tags_context_menu && ((prefs_init.connection_type !== "chatgpt_web")||(prefs_init.add_tags_connection_type !== ""))){
|
||||
if(prefs_init.add_tags && prefs_init.add_tags_context_menu && ((prefs_init.connection_type !== "chatgpt_web")||(prefs_init.add_tags_use_specific_integration && (prefs_init.add_tags_connection_type !== "")))){
|
||||
addContextMenu(contextMenuID_AddTags);
|
||||
}
|
||||
|
||||
// Add Context menu: Spamfilter
|
||||
if(prefs_init.spamfilter && prefs_init.spamfilter_context_menu && ((prefs_init.connection_type !== "chatgpt_web")||(prefs_init.spamfilter_connection_type !== ""))){
|
||||
if(prefs_init.spamfilter && prefs_init.spamfilter_context_menu && ((prefs_init.connection_type !== "chatgpt_web")||(prefs_init.spamfilter_use_specific_integration && (prefs_init.spamfilter_connection_type !== "")))){
|
||||
addContextMenu(contextMenuID_Spamfilter);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue