Tooltip - LuaTexts

17 - Default settings have higher priority than personal settings ?

What steps will reproduce the problem?
1. install addon and maintain own texts (12 lines in total)
2. have a look at the tooltips => all well
3. logout, login => all lines for which default values are defined in luatext.lua show the default values and personal settings only are taken into account starting with line #9

What is the expected output? What do you see instead?
I expect only my texts to be displayed

What version of the product are you using?
v0.7.1-beta-14-g70ad897

Do you have an error log of what happened?
no error log

Please provide any additional information below.
Maybe because in luatext.lua there are default settings for the first 8 lines?

Tried with creating a new profile => same effect

I changed the code (surely this is an ugly hack) in luatexts.lua as follows:

local dbDefaults = {
	profile = {
		leftsPlain = {
		},
		rightsPlain = {
		},
		leftsTemplates = {
		},
		rightsTemplates = {
		},
		lefts = {
			['*'] = "",
		},
		rights = {
			['*'] = "",
		},
		failedCalls = {},
	}
}

afterwards it worked.
But I'm sure that there is something Im doing wrong and that this is not neccessary

No other addons active, my profile settings file is attached (tooltip_luatexts.lua)

Name Size MD5
Tooltip_LuaTexts.lua 3.2 KiB 81cfed72dd84...
User When Change
profalbert Dec 23, 2010 at 11:46 UTC Changed status from New to Accepted
aeon0815 Dec 23, 2010 at 11:33 UTC

Added attachment Tooltip_LuaTexts.lua

aeon0815 Dec 23, 2010 at 11:33 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of profalbert profalbert Jan 09, 2011 at 17:35 UTC - 0 likes

    ah, btw this should work now

  • Avatar of profalbert profalbert Dec 23, 2010 at 11:46 UTC - 0 likes

    No, it's actually my fault ;) I'll remodel the db properly soon.

  • 2 comments

Facts

Last updated
Dec 23, 2010
Reported
Dec 23, 2010
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees