fix: restart I/O when mvbox_move setting is changed

When the setting is enabled,
new IMAP loop should be started.
This commit is contained in:
link2xt
2025-04-08 23:11:36 +00:00
parent 31cf663f8b
commit 634cbd14f0

View File

@@ -475,7 +475,10 @@ impl Config {
/// Whether the config option needs an IO scheduler restart to take effect.
pub(crate) fn needs_io_restart(&self) -> bool {
matches!(self, Config::OnlyFetchMvbox | Config::SentboxWatch)
matches!(
self,
Config::MvboxMove | Config::OnlyFetchMvbox | Config::SentboxWatch
)
}
}