mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 15:28:40 +00:00
fix #37
This commit is contained in:
parent
c2ce0ea2b1
commit
81a4a3cfe1
1 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,8 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
|
|||
return;
|
||||
}
|
||||
layers = layers.where((x) => !x.isDeleted).toList();
|
||||
if (layers.length <= 1) return; // do not remove image layer
|
||||
if (layers.length <= 2)
|
||||
return; // do not remove image layer and filter layer
|
||||
undoLayers.add(layers.removeLast());
|
||||
setState(() {});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue