Commit ddc6f85 1 parent 838431e commit ddc6f85 Copy full SHA for ddc6f85
File tree 5 files changed +19
-3
lines changed
5 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 116
116
"opt_desc_openEnd" : {
117
117
"message" : " When restore list open at the ending of tabs"
118
118
},
119
+ "opt_desc_openTabListNoTab" : {
120
+ "message" : " Open the tab list when store all tabs"
121
+ },
119
122
"opt_label_popup" : {
120
123
"message" : " Popup simple list"
121
124
},
Original file line number Diff line number Diff line change 116
116
"opt_desc_openEnd" : {
117
117
"message" : " 恢复列表时标签页在末尾打开"
118
118
},
119
+ "opt_desc_openTabListNoTab" : {
120
+ "message" : " 当储存所有标签时打开标签列表"
121
+ },
119
122
"opt_label_popup" : {
120
123
"message" : " 弹出简单列表"
121
124
},
Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ export const optionsList = [
221
221
default : true ,
222
222
new : '1.3.9' ,
223
223
} ,
224
+ {
225
+ cate : cate . BEHAVIOUR ,
226
+ name : 'openTabListNoTab' ,
227
+ desc : __ ( 'opt_desc_openTabListNoTab' ) ,
228
+ type : Boolean ,
229
+ default : true ,
230
+ new : '1.4.0' ,
231
+ } ,
224
232
]
225
233
226
234
if ( DEBUG ) {
Original file line number Diff line number Diff line change @@ -106,13 +106,15 @@ const storeSelectedTabs = async listIndex => {
106
106
107
107
const storeAllTabs = async listIndex => {
108
108
const tabs = await getAllTabsInCurrentWindow ( )
109
- await openTabLists ( )
109
+ const opts = await storage . getOptions ( )
110
+ if ( opts . openTabListNoTab ) await openTabLists ( )
110
111
return storeTabs ( tabs , listIndex )
111
112
}
112
113
113
114
const storeAllTabInAllWindows = async ( ) => {
114
115
const windows = await browser . windows . getAll ( )
115
- await openTabLists ( )
116
+ const opts = await storage . getOptions ( )
117
+ if ( opts . openTabListNoTab ) await openTabLists ( )
116
118
for ( const window of windows ) {
117
119
const tabs = await getAllInWindow ( window . id )
118
120
await storeTabs ( tabs )
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"name" : " __MSG_ext_name__" ,
4
- "version" : " 1.3.10 " ,
4
+ "version" : " 1.4.0 " ,
5
5
"default_locale" : " en" ,
6
6
"description" : " __MSG_ext_desc__" ,
7
7
"author" :
" WangJie <[email protected] >" ,
You can’t perform that action at this time.
0 commit comments