don't mutify the app in draw
This commit is contained in:
parent
a9ceeeb6de
commit
88890f670d
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ use ratatui::{
|
|||
use crate::{App, frontend::widgets::*};
|
||||
|
||||
impl App {
|
||||
pub fn draw(&mut self, frame: &mut Frame) {
|
||||
pub fn draw(&self, frame: &mut Frame) {
|
||||
let [top, middle, bottom] = Layout::default()
|
||||
.direction(Direction::Vertical)
|
||||
.constraints([Constraint::Min(3), Constraint::Min(3), Constraint::Min(3)])
|
||||
|
|
Loading…
Reference in a new issue