File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ export interface setting {
248
248
检查更新 : boolean ;
249
249
频率 : "manual" | "start" ;
250
250
模式 : "大版本" | "小版本" | "dev" ;
251
+ 忽略版本 : string ;
251
252
} ;
252
253
录屏 : {
253
254
模式 : "normal" | "super" ;
Original file line number Diff line number Diff line change @@ -2706,6 +2706,7 @@ const defaultSetting: setting = {
2706
2706
检查更新 : true ,
2707
2707
频率 : "start" ,
2708
2708
模式 : "小版本" ,
2709
+ 忽略版本 : "" ,
2709
2710
} ,
2710
2711
录屏 : {
2711
2712
模式 : "normal" ,
@@ -2861,14 +2862,15 @@ function checkUpdate(s手动检查?: boolean) {
2861
2862
if ( firstName . split ( "." ) . at ( 0 ) !== version . split ( "." ) . at ( 0 ) )
2862
2863
update = true ;
2863
2864
}
2864
- if ( update ) {
2865
- showVersion ( {
2866
- v : first . name ,
2867
- url : first . html_url ,
2868
- } ) ;
2869
- } else if ( s手动检查 ) {
2870
- showVersion ( ) ;
2871
- }
2865
+ if ( store . get ( "更新.忽略版本" ) !== firstName )
2866
+ if ( update ) {
2867
+ showVersion ( {
2868
+ v : first . name ,
2869
+ url : first . html_url ,
2870
+ } ) ;
2871
+ } else if ( s手动检查 ) {
2872
+ showVersion ( ) ;
2873
+ }
2872
2874
} )
2873
2875
. catch ( ( ) => {
2874
2876
if ( s手动检查 ) showVersion ( "err" ) ;
Original file line number Diff line number Diff line change @@ -1189,6 +1189,10 @@ <h2>检查更新</h2>
1189
1189
</ label >
1190
1190
</ div >
1191
1191
1192
+ < h3 > 忽略版本</ h3 >
1193
+ < comment > 忽略版本号以跳过更新</ comment >
1194
+ < input type ="text " spellcheck ="false " data-path ="更新.忽略版本 ">
1195
+
1192
1196
< h2 id ="path_info "> 位置信息</ h2 >
1193
1197
< t > 配置目录:</ t > < input type ="text " spellcheck ="false " id ="user_data_path ">
1194
1198
< div id ="user_data_divs ">
You can’t perform that action at this time.
0 commit comments