mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 17:35:18 +00:00
Fix wallpaper nullcheck
This commit is contained in:
parent
267b989786
commit
e1fa736d46
1 changed files with 1 additions and 0 deletions
|
@ -368,6 +368,7 @@ class MatrixState extends State<Matrix> {
|
|||
}
|
||||
if (client.storeAPI != null) {
|
||||
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
|
||||
if (path == null) return;
|
||||
final file = File(path);
|
||||
if (await file.exists()) {
|
||||
wallpaper = file;
|
||||
|
|
Loading…
Reference in a new issue