- 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) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pump the percent up to 100%
|
||||||
|
setStatus(null, 100, -1L, false);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ public class GetdownApplet extends JApplet
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void exit (int exitCode) {
|
protected void exit (int exitCode) {
|
||||||
|
_status.stopThrob();
|
||||||
_app.releaseLock();
|
_app.releaseLock();
|
||||||
_config.redirect();
|
_config.redirect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,16 @@ public class StatusPanel extends JComponent
|
|||||||
updateStatusLabel();
|
updateStatusLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stop the throbbing.
|
||||||
|
*/
|
||||||
|
public void stopThrob ()
|
||||||
|
{
|
||||||
|
_timer.stop();
|
||||||
|
_statusDots = 3;
|
||||||
|
updateStatusLabel();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addNotify ()
|
public void addNotify ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user