@@ -8,8 +8,6 @@ public class GXWebProgressIndicator
8
8
private GXWebNotification notification ;
9
9
private GXWebProgressIndicatorInfo info ;
10
10
private ModelContext context ;
11
- private boolean running = false ;
12
-
13
11
14
12
public GXWebProgressIndicator (ModelContext gxContext )
15
13
{
@@ -20,34 +18,28 @@ public GXWebProgressIndicator(ModelContext gxContext)
20
18
21
19
public void show ()
22
20
{
23
- running = true ;
24
21
setAction ("0" );
25
22
updateProgress ();
26
23
}
27
24
28
25
private void updateProgress ()
29
26
{
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 );
38
32
}
39
33
40
34
public void showWithTitle (String title )
41
35
{
42
- running = true ;
43
36
setTitle (title );
44
37
setAction ("1" );
45
38
updateProgress ();
46
39
}
47
40
48
41
public void showWithTitleAndDescription (String title , String desc )
49
42
{
50
- running = true ;
51
43
setTitle (title );
52
44
setDescription (desc );
53
45
setAction ("2" );
@@ -58,7 +50,6 @@ public void hide()
58
50
{
59
51
setAction ("3" );
60
52
updateProgress ();
61
- running = false ;
62
53
}
63
54
64
55
private String getAction () {
0 commit comments