Skip to content

Commit 8503656

Browse files
committed
optimize desktop monitor startup speed
1 parent 6a1b2eb commit 8503656

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

projects/app_desktop_monitor/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id: desktop_monitor
22
name: Desktop Monitor
33
name[zh]: 桌面监视器
4-
version: 1.0.2
4+
version: 1.0.3
55
icon: assets/desktop_monitor.json
66
author: neucrack@Sipeed Ltd
77
desc: Monitoring PC info, or other info from internet or local.

projects/app_desktop_monitor/desktop_monitor/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import requests
2-
31

42
def get_pc_info(site_addr):
3+
import requests
54
url = site_addr + '/'
65
try:
76
res = requests.post(url)

projects/app_desktop_monitor/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def main(screen):
257257
size = image.string_size(msg)
258258
img.draw_string((img.width() - size.width()) // 2, (img.height() - size.height()) // 2 - 10, msg, COLOR_RED)
259259
show_img = img
260+
screen.show(show_img)
260261
scan_w = img.width() - img.width() // 4
261262
scan_h = img.height() - img.height() // 4
262263
while 1:

0 commit comments

Comments
 (0)