File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ public function setup() {
101101 * @return bool
102102 */
103103 public function is_enabled () {
104- return $ this ->is_running ();
104+ $ status = $ this ->get_queue_status ();
105+ return $ status ['is_running ' ];
105106 }
106107
107108 /**
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected function status( $struct ) {
4545 $ icon = 'dashicons-yes-alt ' ;
4646 $ state_text = __ ( 'All assets are synced ' , 'cloudinary ' );
4747
48- if ( ! empty ( $ to_sync ) && $ this ->setting ->get_param ( 'queue ' )->is_enabled () ) {
48+ if ( $ this ->setting ->get_param ( 'queue ' )->is_enabled () ) {
4949 $ state = 'notification-syncing ' ;
5050 $ icon = 'dashicons-update ' ;
5151 $ state_text = __ ( 'Syncing now ' , 'cloudinary ' );
You can’t perform that action at this time.
0 commit comments