renamed the about panel.

This commit is contained in:
michael-bailey 2020-09-27 16:07:45 +01:00 committed by michael bailey
parent b3174cc488
commit 5243a6ce8e
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ use cursive::views::{Dialog, TextView};
use cursive::view::ViewWrapper;
use cursive::{Printer, View};
pub fn About() -> Box<dyn View> {
pub fn about() -> Box<dyn View> {
Box::new(
Dialog::new()
.content("rust chat server written by Mitchel Hardie & Michael Bailey (c) 2020")
.content(TextView::new("rust chat server written by Mitchel Hardie & Michael Bailey (c) 2020"))
.button("Close", |s| {s.pop_layer();})
)
}