mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Message deletion works
This commit is contained in:
parent
b95bf6ec27
commit
879504bc57
@ -187,13 +187,16 @@ class DeleteMessageProgress extends ProgressFrame {
|
||||
|
||||
Object args[] = {Util.GetSubject(message)};
|
||||
|
||||
setStatus(MessageFormat.format(fLabels.getString("deletingMessageStatus"),
|
||||
setStatus(MessageFormat.format(fLabels.getString("deletingMessageStatus"),
|
||||
args));
|
||||
// source.deleteMessage(message);
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
} catch (InterruptedException e) {
|
||||
message.setFlag(Flags.Flag.DELETED, true);
|
||||
} catch (MessagingException e) {
|
||||
}
|
||||
//try {
|
||||
// Thread.sleep(500);
|
||||
//} catch (InterruptedException e) {
|
||||
//}
|
||||
idx++;
|
||||
setProgress(idx);
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public abstract class ProgressFrame extends GeneralFrame implements Runnable {
|
||||
progressLoop();
|
||||
|
||||
fThread = null;
|
||||
this.dispose();
|
||||
// Is this right? (edwin)
|
||||
// this.dispose();
|
||||
this.hide();
|
||||
}
|
||||
|
||||
public abstract void progressLoop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user