Minor fix (same behavior, different "usage")
This commit is contained in:
parent
80abcb7436
commit
336f338b32
1 changed files with 6 additions and 3 deletions
|
@ -118,8 +118,11 @@ impl MPDDisplay {
|
||||||
if self.mpd_handler.is_some() {
|
if self.mpd_handler.is_some() {
|
||||||
self.is_initialized = true;
|
self.is_initialized = true;
|
||||||
loop {
|
loop {
|
||||||
self.dirty_flag =
|
self.dirty_flag = self
|
||||||
MPDHandler::get_dirty_flag(&self.mpd_handler.as_ref().unwrap().clone())
|
.mpd_handler
|
||||||
|
.as_ref()
|
||||||
|
.unwrap()
|
||||||
|
.get_dirty_flag()
|
||||||
.map_or(None, |f| Some(f));
|
.map_or(None, |f| Some(f));
|
||||||
if self.dirty_flag.is_some() {
|
if self.dirty_flag.is_some() {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue