@@ -8,8 +8,6 @@ public class GXWebProgressIndicator
88 private GXWebNotification notification ;
99 private GXWebProgressIndicatorInfo info ;
1010 private ModelContext context ;
11- private boolean running = false ;
12-
1311
1412 public GXWebProgressIndicator (ModelContext gxContext )
1513 {
@@ -20,34 +18,28 @@ public GXWebProgressIndicator(ModelContext gxContext)
2018
2119 public void show ()
2220 {
23- running = true ;
2421 setAction ("0" );
2522 updateProgress ();
2623 }
2724
2825 private void updateProgress ()
2926 {
30- if (running )
31- {
32- GXWebNotificationInfo notif = new GXWebNotificationInfo (0 ,context ,"" );
33- notif .setId (GXWebProgressIndicator .ID );
34- notif .setGroupName (GXWebProgressIndicator .ID );
35- notif .setMessage (info );
36- notification .notify (notif );
37- }
27+ GXWebNotificationInfo notif = new GXWebNotificationInfo (0 ,context ,"" );
28+ notif .setId (GXWebProgressIndicator .ID );
29+ notif .setGroupName (GXWebProgressIndicator .ID );
30+ notif .setMessage (info );
31+ notification .notify (notif );
3832 }
3933
4034 public void showWithTitle (String title )
4135 {
42- running = true ;
4336 setTitle (title );
4437 setAction ("1" );
4538 updateProgress ();
4639 }
4740
4841 public void showWithTitleAndDescription (String title , String desc )
4942 {
50- running = true ;
5143 setTitle (title );
5244 setDescription (desc );
5345 setAction ("2" );
@@ -58,7 +50,6 @@ public void hide()
5850 {
5951 setAction ("3" );
6052 updateProgress ();
61- running = false ;
6253 }
6354
6455 private String getAction () {
0 commit comments