From b5203686e3bcce23a103ef007f9043dded68b2ec Mon Sep 17 00:00:00 2001 From: mbays Date: Sun, 4 Aug 2024 00:00:00 +0000 Subject: [PATCH] InputDialog: call edited_callback on edit even when no Save/Close buttons --- frontend/ui/widget/inputdialog.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/widget/inputdialog.lua b/frontend/ui/widget/inputdialog.lua index e9abe74db..82b52dcea 100644 --- a/frontend/ui/widget/inputdialog.lua +++ b/frontend/ui/widget/inputdialog.lua @@ -363,7 +363,7 @@ function InputDialog:init() end end, strike_callback = self.strike_callback, - edit_callback = self._buttons_edit_callback, -- nil if no Save/Close buttons + edit_callback = self._buttons_edit_callback or self.edited_callback, -- self._buttons_edit_callback is nil if no Save/Close buttons scroll_callback = self._buttons_scroll_callback, -- nil if no Nav or Scroll buttons scroll = true, scroll_by_pan = self.scroll_by_pan, @@ -734,7 +734,7 @@ function InputDialog:_addSaveCloseButtons() self:refreshButtons() end if self.edited_callback then - self.edited_callback() + self.edited_callback(edited) end end if self.reset_callback then