set_active_account_from_tny_account (account, MODEST_WINDOW (main_window));
g_object_unref (account);
}
-
+
+ if (tny_folder_get_all_count (TNY_FOLDER(folder_store)) == 0)
+ modest_main_window_set_contents_style (main_window, MODEST_MAIN_WINDOW_CONTENTS_STYLE_EMPTY);
+ else
+ modest_main_window_set_contents_style (main_window, MODEST_MAIN_WINDOW_CONTENTS_STYLE_HEADERS);
+
+
+ modest_widget_memory_save (modest_runtime_get_conf(),
+ G_OBJECT(header_view),
+ MODEST_CONF_HEADER_VIEW_KEY);
/* Set folder on header view */
modest_header_view_set_folder (MODEST_HEADER_VIEW(header_view),
TNY_FOLDER (folder_store),
folder_refreshed_cb,
- main_window);
+ main_window);
+ modest_widget_memory_restore (modest_runtime_get_conf(),
+ G_OBJECT(header_view),
+ MODEST_CONF_HEADER_VIEW_KEY);
} else {
/* Update the active account */
modest_window_set_active_account (MODEST_WINDOW (main_window), NULL);
/* Do not show folder */
modest_widget_memory_save (conf, G_OBJECT (header_view), MODEST_CONF_HEADER_VIEW_KEY);
modest_header_view_clear (MODEST_HEADER_VIEW(header_view));
- }
+ }
}
/* Update toolbar dimming state */