Skip to content

Commit 7149469

Browse files
committed
fix(LibrarySettings): persist local library settings and remove double unregister
1 parent 9b2470a commit 7149469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ui/card_ui/settings/library_settings_menu.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func _on_state_exited(_to: State) -> void:
6969

7070

7171
func _on_local_library_toggled(enabled: bool) -> void:
72+
settings_manager.set_value("general", "enable_local_library", enabled)
7273
if enabled:
7374
_enable_local_library()
7475
return
@@ -91,5 +92,4 @@ func _disable_local_library() -> void:
9192
var library := library_manager.get_library_by_id("desktop")
9293
if not library:
9394
return
94-
library_manager.unregister_library(library)
9595
library.queue_free()

0 commit comments

Comments
 (0)