parent
356a1aff58
commit
ccfd1f0360
3 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,10 @@
|
|||
public abstract class Geary.AbstractLocalFolder : Geary.AbstractFolder {
|
||||
private int open_count = 0;
|
||||
|
||||
public AbstractLocalFolder() {
|
||||
opening_monitor = new Geary.SimpleProgressMonitor(Geary.ProgressType.ACTIVITY);
|
||||
}
|
||||
|
||||
public override Geary.Folder.OpenState get_open_state() {
|
||||
return open_count > 0 ? Geary.Folder.OpenState.LOCAL : Geary.Folder.OpenState.CLOSED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ public class Geary.SearchFolder : Geary.AbstractLocalFolder, Geary.FolderSupport
|
|||
public signal void search_query_changed(string? query);
|
||||
|
||||
public SearchFolder(Account account) {
|
||||
base();
|
||||
|
||||
_account = account;
|
||||
|
||||
account.folders_available_unavailable.connect(on_folders_available_unavailable);
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
|
|||
// Requires the Database from the get-go because it runs a background task that access it
|
||||
// whether open or not
|
||||
public SmtpOutboxFolder(ImapDB.Database db, Account account, Geary.ProgressMonitor sending_monitor) {
|
||||
base();
|
||||
|
||||
this.db = db;
|
||||
_account = account;
|
||||
this.sending_monitor = sending_monitor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue