NagView: properly rescale on scale change (#1379)

* drop font option since style.font is always used
This commit is contained in:
Jefferson González
2023-08-19 12:37:49 +08:00
committed by takase1121
parent 6925c06599
commit 70ed171612
5 changed files with 22 additions and 12 deletions
+4 -4
View File
@@ -818,8 +818,8 @@ function core.init()
if #plugins_refuse_list.userdir.plugins > 0 or #plugins_refuse_list.datadir.plugins > 0 then
local opt = {
{ font = style.font, text = "Exit", default_no = true },
{ font = style.font, text = "Continue" , default_yes = true }
{ text = "Exit", default_no = true },
{ text = "Continue", default_yes = true }
}
local msg = {}
for _, entry in pairs(plugins_refuse_list) do
@@ -860,8 +860,8 @@ function core.confirm_close_docs(docs, close_fn, ...)
end
local args = {...}
local opt = {
{ font = style.font, text = "Yes", default_yes = true },
{ font = style.font, text = "No" , default_no = true }
{ text = "Yes", default_yes = true },
{ text = "No", default_no = true }
}
core.nag_view:show("Unsaved Changes", text, opt, function(item)
if item.text == "Yes" then close_fn(table.unpack(args)) end