fn navigate_back(&mut self) {
        let mut guard = self.history.lock().unwrap();
        let history = guard.back();
        if let Some(h) = history {
            std::mem::drop(guard);
            info!("NAVIGATE_BACK to index {}", h.position);
            self.ui
                .read()
                .unwrap()
                .ui_tx
                .read()
                .unwrap()
                .send(UiMessage::OpenUrl(h.url, false, h.position))
                .unwrap();
        } else {
            std::mem::drop(guard);
            //self.app.add_layer(Dialog::info("No url"))
        }
    }
/// Navigates to the previous page in history
Navigates to the previous page in history
Navigates to the previous page in history
fn navigate_back(&mut self) {
        let mut guard = self.history.lock().unwrap();
        let history = guard.back();
        if let Some(h) = history {
            std::mem::drop(guard);
            info!("NAVIGATE_BACK to index {}", h.position);
            self.ui
                .read()
                .unwrap()
                .ui_tx
                .read()
                .unwrap()
                .send(UiMessage::OpenUrl(h.url, false, h.position))
                .unwrap();
        } else {
            std::mem::drop(guard);
            //self.app.add_layer(Dialog::info("No url"))
        }
    }
fn navigate_back ( & mut self ) { let mut guard = self . history . lock ( ) . unwrap ( ) ; let history = guard . back ( ) ; if let Some ( h ) = history { std :: mem :: drop ( guard ) ; info ! ( " " h position ) ; self . ui . read ( ) . unwrap ( ) . ui_tx . read ( ) . unwrap ( ) . send ( UiMessage :: OpenUrl ( h . url , false , h . position ) ) . unwrap ( ) ; } else { std :: mem :: drop ( guard ) ; //self.app.add_layer(Dialog::info("No url")) } }
Navigates to the previous page in history
Navigates to the previous page in history
&mut self
&mut self