fix doc
This commit is contained in:
parent
abb38e4dba
commit
d435307259
@ -60,7 +60,7 @@ impl Assets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
// Load all of the data from the compressed tarball
|
/// Load all of the data from the compressed tarball
|
||||||
static ref ASSETS: Assets = {
|
static ref ASSETS: Assets = {
|
||||||
let start = instant::Instant::now();
|
let start = instant::Instant::now();
|
||||||
|
|
||||||
@ -316,8 +316,7 @@ pub struct MathApp {
|
|||||||
/// Stores vector of functions
|
/// Stores vector of functions
|
||||||
functions: Vec<FunctionEntry>,
|
functions: Vec<FunctionEntry>,
|
||||||
|
|
||||||
/// Contains the list of Areas calculated (the vector of f64) and time it
|
/// Contains the list of Areas calculated (the vector of f64) and time it took for the last frame (the Duration). Stored in a Tuple.
|
||||||
/// took for the last frame (the Duration). Stored in a Tuple.
|
|
||||||
last_info: (Vec<Option<f64>>, Duration),
|
last_info: (Vec<Option<f64>>, Duration),
|
||||||
|
|
||||||
/// Stores whether or not dark mode is enabled
|
/// Stores whether or not dark mode is enabled
|
||||||
@ -533,8 +532,7 @@ impl MathApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl epi::App for MathApp {
|
impl epi::App for MathApp {
|
||||||
/// Called each time the UI needs repainting, which may be many times per
|
/// Called each time the UI needs repainting, which may be many times per second.
|
||||||
/// second.
|
|
||||||
fn update(&mut self, ctx: &Context, _frame: &mut epi::Frame) {
|
fn update(&mut self, ctx: &Context, _frame: &mut epi::Frame) {
|
||||||
// start timer
|
// start timer
|
||||||
let start = instant::Instant::now();
|
let start = instant::Instant::now();
|
||||||
@ -545,9 +543,7 @@ impl epi::App for MathApp {
|
|||||||
false => Visuals::light(),
|
false => Visuals::light(),
|
||||||
});
|
});
|
||||||
|
|
||||||
// if text boxes aren't in focus, allow H keybind to toggle side panel.
|
// if keyboard input isn't being grabed, check for key combos
|
||||||
// this is behind this check as if it wasn't, it would trigger if the user
|
|
||||||
// presses the h key in a text box as well
|
|
||||||
if !ctx.wants_keyboard_input() {
|
if !ctx.wants_keyboard_input() {
|
||||||
self.opened
|
self.opened
|
||||||
.side_panel
|
.side_panel
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user