|
|
@ -160,6 +160,8 @@ impl Composer {
|
|
|
|
pub fn new(context: &Context) -> Self {
|
|
|
|
pub fn new(context: &Context) -> Self {
|
|
|
|
let mut pager = Pager::new(context);
|
|
|
|
let mut pager = Pager::new(context);
|
|
|
|
pager.set_show_scrollbar(true);
|
|
|
|
pager.set_show_scrollbar(true);
|
|
|
|
|
|
|
|
let mut form = FormWidget::default();
|
|
|
|
|
|
|
|
form.set_cursor(2);
|
|
|
|
Composer {
|
|
|
|
Composer {
|
|
|
|
reply_context: None,
|
|
|
|
reply_context: None,
|
|
|
|
account_hash: AccountHash::default(),
|
|
|
|
account_hash: AccountHash::default(),
|
|
|
@ -172,7 +174,7 @@ impl Composer {
|
|
|
|
hooks::MISSINGATTACHMENTWARN,
|
|
|
|
hooks::MISSINGATTACHMENTWARN,
|
|
|
|
hooks::EMPTYDRAFTWARN,
|
|
|
|
hooks::EMPTYDRAFTWARN,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
form: FormWidget::default(),
|
|
|
|
form,
|
|
|
|
mode: ViewMode::Edit,
|
|
|
|
mode: ViewMode::Edit,
|
|
|
|
#[cfg(feature = "gpgme")]
|
|
|
|
#[cfg(feature = "gpgme")]
|
|
|
|
gpg_state: gpg::GpgComposeState::default(),
|
|
|
|
gpg_state: gpg::GpgComposeState::default(),
|
|
|
|