Then I get a reminder of whether I can safely compose embarrassingly
nonsensical test toots, or whether I'm supposed to be being coherent :-)
self.permit_write = permit;
}
+ pub fn is_writable(&self) -> bool { self.permit_write }
+
pub fn set_logfile(&mut self, file: Option<File>) {
self.logfile = file;
}
menu.add_action(Escape, "Utilities and Exit", LogicalAction::Nothing);
menu.add_info(&format!("Logged in as {}", &client.our_account_fq()));
+ if !client.is_writable() {
+ menu.add_info_coloured(ColouredString::uniform(
+ "Mastodonochrome was run in readonly mode", 'r'));
+ }
Box::new(menu.finalise())
}