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)};
|
Object args[] = {Util.GetSubject(message)};
|
||||||
|
|
||||||
setStatus(MessageFormat.format(fLabels.getString("deletingMessageStatus"),
|
setStatus(MessageFormat.format(fLabels.getString("deletingMessageStatus"),
|
||||||
args));
|
args));
|
||||||
// source.deleteMessage(message);
|
|
||||||
try {
|
try {
|
||||||
Thread.sleep(500);
|
message.setFlag(Flags.Flag.DELETED, true);
|
||||||
} catch (InterruptedException e) {
|
} catch (MessagingException e) {
|
||||||
}
|
}
|
||||||
|
//try {
|
||||||
|
// Thread.sleep(500);
|
||||||
|
//} catch (InterruptedException e) {
|
||||||
|
//}
|
||||||
idx++;
|
idx++;
|
||||||
setProgress(idx);
|
setProgress(idx);
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,9 @@ public abstract class ProgressFrame extends GeneralFrame implements Runnable {
|
|||||||
progressLoop();
|
progressLoop();
|
||||||
|
|
||||||
fThread = null;
|
fThread = null;
|
||||||
this.dispose();
|
// Is this right? (edwin)
|
||||||
|
// this.dispose();
|
||||||
|
this.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void progressLoop();
|
public abstract void progressLoop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user