fix domain in login/logout menu not changed after switching domain

pull/579/head
chrox 10 years ago
parent 27148c3c8b
commit 3bba47b241

@ -38,6 +38,11 @@ function EvernoteExporter:init()
end
function EvernoteExporter:addToMainMenu(tab_item_table)
table.insert(tab_item_table.plugins, {
text = _("Evernote"),
sub_item_table = {
{
text_func = function()
local domain = nil
if self.evernote_domain == "sandbox" then
domain = _("Sandbox")
@ -46,11 +51,6 @@ function EvernoteExporter:addToMainMenu(tab_item_table)
else
domain = _("Evernote")
end
table.insert(tab_item_table.plugins, {
text = _("Evernote"),
sub_item_table = {
{
text_func = function()
return self.evernote_token and (_("Logout") .. " " .. domain)
or _("Login")
end,

Loading…
Cancel
Save