Skip to content

Commit 41c49ae

Browse files
committed
disable refresh
1 parent 8271df2 commit 41c49ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/monitor.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ pub fn sub() -> impl Stream<Item = Message> {
4545
let mut res = HashMap::new();
4646

4747
for display in Display::enumerate() {
48+
let info = &display.info;
49+
info!("{:?}", info);
50+
4851
let mon = Monitor {
4952
name: display.info.model_name.clone().unwrap_or_default(),
5053
brightness: 0,
@@ -62,7 +65,7 @@ pub fn sub() -> impl Stream<Item = Message> {
6265
rx
6366
};
6467

65-
let mut state = State::Fetching;
68+
let mut state = State::Ready;
6669
let mut duration = DEFAULT_WAITING;
6770

6871
let mut request_buff = Vec::new();
@@ -138,7 +141,7 @@ pub fn sub() -> impl Stream<Item = Message> {
138141
}
139142
}
140143

141-
if refresh {
144+
if false {
142145
let displays = displays.clone();
143146

144147
let j = tokio::task::spawn_blocking(move || {

0 commit comments

Comments
 (0)