From d0c00ad8ba98fc99c550d1ffad87bab852361323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 8 May 2024 21:38:18 +0800 Subject: [PATCH] Reset :show_existing_sessions to the correct default value in single-session config --- lib/livebook/notebook/app_settings.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/livebook/notebook/app_settings.ex b/lib/livebook/notebook/app_settings.ex index d48bb769f..761aea0bf 100644 --- a/lib/livebook/notebook/app_settings.ex +++ b/lib/livebook/notebook/app_settings.ex @@ -119,8 +119,9 @@ defmodule Livebook.Notebook.AppSettings do |> cast(attrs, [:zero_downtime]) |> validate_required([:zero_downtime]) # Listing sessions is not applicable to single-session apps, - # since they have a single session at a time - |> put_change(:show_existing_sessions, true) + # since they have a single session at a time. We reset to + # the default, so we do not persist it unnecessarily + |> put_change(:show_existing_sessions, false) true -> changeset