- Right before we exit let's set the progress to 100%
(launching normally stops at 99%) - In the applet version's exit() we stop the 'throbber'.
This commit is contained in:
@@ -834,6 +834,9 @@ public abstract class Getdown extends Thread
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
||||
// pump the percent up to 100%
|
||||
setStatus(null, 100, -1L, false);
|
||||
exit(0);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -169,6 +169,7 @@ public class GetdownApplet extends JApplet
|
||||
}
|
||||
@Override
|
||||
protected void exit (int exitCode) {
|
||||
_status.stopThrob();
|
||||
_app.releaseLock();
|
||||
_config.redirect();
|
||||
}
|
||||
|
||||
@@ -153,6 +153,16 @@ public class StatusPanel extends JComponent
|
||||
updateStatusLabel();
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop the throbbing.
|
||||
*/
|
||||
public void stopThrob ()
|
||||
{
|
||||
_timer.stop();
|
||||
_statusDots = 3;
|
||||
updateStatusLabel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addNotify ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user