Skip to content

Commit e9aca59

Browse files
Hotfix: project helper not checking auto-save flag
1 parent 0fe9f9d commit e9aca59

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,7 @@ Perfect — here’s a continuation of your changelog, following your establishe
103103

104104
- Refactored caching logic in custom render objects to ensure consistency across platforms.
105105
- Improved layout synchronization and stability during portal (overlay) transitions.
106+
107+
## 0.5.0+1
108+
109+
- **Fixed auto-save**: Fixed project helper not checking auto-save flag but therefore ignoring configuration.

lib/src/core/controller/project.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ class FlNodeEditorProjectHelper {
102102
event.eventType == FlFieldEventType.submit)) {
103103
isSaved = false;
104104

105-
if (_autoSaveTimer == null || !_autoSaveTimer!.isActive) {
105+
if ((_autoSaveTimer == null || !_autoSaveTimer!.isActive) &&
106+
controller.config.autoSave) {
106107
_autoSaveTimer =
107108
Timer.periodic(controller.config.autoSaveInterval, (timer) {
108109
if (!isSaved) save();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fl_nodes
22
description: A lightweight, scalable, and highly customizable package that empowers Flutter developers to create dynamic, interactive, and visually appealing node-based UIs.
3-
version: 0.5.0
3+
version: 0.5.0+1
44
maintainer: William Karol Di Cioccio
55

66
homepage: https://williamkaroldicioccio.github.io/fl_nodes/

0 commit comments

Comments
 (0)