@@ -337,7 +337,7 @@ class SpiceSpy extends Applet.TextIconApplet {
337337
338338 this . fistTime = true ;
339339 this . loopId = null ;
340- this . jobsLoopId = null ;
340+ this . commentsJobsLoopId = null ;
341341 this . issuesLoopId = null ;
342342 this . is_looping = true ;
343343
@@ -726,7 +726,8 @@ class SpiceSpy extends Applet.TextIconApplet {
726726 const currentTime = parseInt ( new Date / 1000 ) ;
727727 const difference = currentTime - jsonModifTime ;
728728 if ( difference >= 900 ) { // 900s = 15 min.
729- Util . spawnCommandLineAsync ( CACHE_UPDATER + " --update-all" ) ;
729+ //~ Util.spawnCommandLineAsync(CACHE_UPDATER+" --update-all");
730+ Util . spawnCommandLineAsync ( CACHE_UPDATER ) ;
730731 }
731732 } else {
732733 Util . spawnCommandLineAsync ( CACHE_INIT ) ;
@@ -926,7 +927,7 @@ class SpiceSpy extends Applet.TextIconApplet {
926927 this . menu . addMenuItem ( read_all ) ;
927928 }
928929
929- if ( this . issuesJobsList . length === 0 ) {
930+ if ( this . issuesJobsList . length === 0 && this . commentsJobsList . length === 0 ) {
930931 let refresh = new PopupMenu . PopupIconMenuItem ( _ ( "Refresh" ) , "view-refresh-symbolic" , St . IconType . SYMBOLIC ) ;
931932 refresh . connect ( "activate" ,
932933 ( ) => {
@@ -949,16 +950,16 @@ class SpiceSpy extends Applet.TextIconApplet {
949950 refresh_in_progress . connect ( "activate" ,
950951 ( ) => {
951952 if ( this . menu ) this . menu . toggle ( true ) ;
952- if ( this . issuesLoopId != null ) {
953- source_remove ( this . issuesLoopId ) ;
954- }
955- this . issuesLoopId = null ;
953+ //~ if (this.issuesLoopId != null) {
954+ //~ source_remove(this.issuesLoopId);
955+ //~ }
956+ //~ this.issuesLoopId = null;
956957 this . issuesJobsList = [ ] ;
957958
958- if ( this . jobsLoopId != null ) {
959- source_remove ( this . jobsLoopId ) ;
960- }
961- this . jobsLoopId = null ;
959+ //~ if (this.commentsJobsLoopId != null) {
960+ //~ source_remove(this.commentsJobsLoopId );
961+ //~ }
962+ //~ this.commentsJobsLoopId = null;
962963 this . commentsJobsList = [ ] ;
963964 //~ this.is_looping = true;
964965 //~ this.fistTime = false;
@@ -1011,7 +1012,7 @@ class SpiceSpy extends Applet.TextIconApplet {
10111012 this . renew_caches ( ) ;
10121013
10131014 this . loopId = timeout_add_seconds ( 60 , ( ) => { this . loop ( ) } ) ;
1014- this . jobsLoopId = timeout_add_seconds ( 15 , ( ) => { this . commentsJobs_loop ( ) ; return this . is_looping ; } ) ;
1015+ this . commentsJobsLoopId = timeout_add_seconds ( 15 , ( ) => { this . commentsJobs_loop ( ) ; return this . is_looping ; } ) ;
10151016 this . iconColorLoopId = timeout_add_seconds ( 1 , ( ) => { this . setIconColor ( ) ; return this . is_looping ; } ) ;
10161017
10171018 this . update_issues_json ( ) ;
@@ -1032,7 +1033,7 @@ class SpiceSpy extends Applet.TextIconApplet {
10321033 remove_all_sources ( ) ;
10331034 if ( this . menu ) this . menu . removeAll ( ) ;
10341035 this . loopId = null ;
1035- this . jobsLoopId = null ;
1036+ this . commentsJobsLoopId = null ;
10361037 this . issuesLoopId = null ;
10371038 this . issuesJsonLoopId = null ;
10381039 } // End of on_applet_removed_from_panel
0 commit comments