Skip to content

Commit

Permalink
fixup! Distribute user scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mstv committed May 14, 2023
1 parent 480a224 commit 3f8512a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ protected override void SettingsToPage()
protected override void PageToSettings()
{
// Update the currently edited script
_scriptsManager.Update(SelectedScript);
ScriptInfo? selectedScript = SelectedScript;
if (selectedScript is not null)
{
_scriptsManager.Update(SelectedScript);
}

_scriptsManager.Save();

Expand Down

0 comments on commit 3f8512a

Please sign in to comment.