testing
This commit is contained in:
@@ -8,6 +8,7 @@ use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::{fs, process};
|
||||
use tachyonfx::{Duration, EffectManager};
|
||||
use tokio::sync::mpsc::Sender;
|
||||
use tokio_util::sync::CancellationToken;
|
||||
use veil::Redact;
|
||||
@@ -40,6 +41,9 @@ pub struct App<'a> {
|
||||
pub ticks_until_scroll: u64,
|
||||
pub tick_count: u64,
|
||||
pub ui_scroll_tick_count: u64,
|
||||
pub last_tick: Duration,
|
||||
pub effects: EffectManager<()>,
|
||||
pub has_active_effect: bool,
|
||||
pub is_routing: bool,
|
||||
pub is_loading: bool,
|
||||
pub should_refresh: bool,
|
||||
@@ -189,6 +193,7 @@ impl App<'_> {
|
||||
pub fn push_navigation_stack(&mut self, route: Route) {
|
||||
self.navigation_stack.push(route);
|
||||
self.is_routing = true;
|
||||
self.has_active_effect = false;
|
||||
}
|
||||
|
||||
pub fn pop_navigation_stack(&mut self) {
|
||||
@@ -237,6 +242,9 @@ impl Default for App<'_> {
|
||||
ticks_until_scroll: 4,
|
||||
tick_count: 0,
|
||||
ui_scroll_tick_count: 0,
|
||||
last_tick: Duration::ZERO,
|
||||
effects: EffectManager::default(),
|
||||
has_active_effect: false,
|
||||
is_loading: false,
|
||||
is_routing: false,
|
||||
should_refresh: false,
|
||||
|
||||
Reference in New Issue
Block a user