generated from PlexSheep/rs-base
chore: remove old todo comments
This commit is contained in:
parent
2149258e8f
commit
1db0aae933
|
@ -93,7 +93,7 @@ impl UiData {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn changed(&self) -> bool {
|
pub fn changed(&self) -> bool {
|
||||||
// NOTE: the timebar ratio is discarded, so that we only render the ui when the time
|
// the timebar ratio is discarded, so that we only render the ui when the time
|
||||||
// (second) changes
|
// (second) changes
|
||||||
let r = self.fdate[0] != self.fdate[1] || self.ftime[0] != self.ftime[1];
|
let r = self.fdate[0] != self.fdate[1] || self.ftime[0] != self.ftime[1];
|
||||||
trace!("changed: {r}");
|
trace!("changed: {r}");
|
||||||
|
@ -152,7 +152,6 @@ impl Clock {
|
||||||
fn maybe_reset_since_zero(&mut self) {
|
fn maybe_reset_since_zero(&mut self) {
|
||||||
if let Some(len) = self.timebar_len() {
|
if let Some(len) = self.timebar_len() {
|
||||||
trace!("Local Time: {}", Local::now());
|
trace!("Local Time: {}", Local::now());
|
||||||
// BUG: these resets trigger multiple times
|
|
||||||
let since_last_reset = Local::now().signed_duration_since(self.last_reset.unwrap());
|
let since_last_reset = Local::now().signed_duration_since(self.last_reset.unwrap());
|
||||||
match len {
|
match len {
|
||||||
TimeBarLength::Custom(_) => {
|
TimeBarLength::Custom(_) => {
|
||||||
|
|
Reference in New Issue