usage

usage 0.22.8

工具與目錄
在這頁

修正 1 項

01

面板萬一載入失敗,不會再永遠卡在錯誤畫面

你現在切換面板萬一遇到載入失敗,不會再永遠卡在錯誤畫面了。0.22.7 版雖然讓面板切換變快,但如果某個面板剛好讀取失敗顯示了錯誤畫面,它就會把那個錯誤畫面「快取」起來,導致你之後怎麼切換都只看得到那個錯誤,除非整個程式重開。現在系統學乖了,只有成功載入的面板才會被存起來;如果失敗了,它下次會再努力重讀一次。就像一台會記住畫面的電視機,以前連藍畫面死機都記下來天天播給你聽,現在它只記住正常的節目,碰到雜訊下次懂得自己重抓訊號。

官方原文

**A panel that fails to load is no longer pinned to its error screen until restart**: the panel caching added in 0.22.7 stored whatever build_view returned — including the ErrorPanelView fallback shown when a panel's HTML can't be read — so once a load failed, switching back kept showing the error even after the file was available again. usage now caches only successfully-built web views; a failed build is shown but left uncached and rebuilt on the next switch, so a transient read failure recovers on its own.