Default settings have higher priority than personal settings ? #17


  • Defect
  • Accepted
Open
Assigned to profalbert
  • _ForgeUser737898 created this issue Dec 23, 2010

    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)

  • _ForgeUser737898 added the tags New Defect Dec 23, 2010
  • _ForgeUser737898 added an attachment Tooltip_LuaTexts.lua Dec 23, 2010

    Tooltip_LuaTexts.lua

  • profalbert posted a comment Dec 23, 2010

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

  • profalbert removed a tag New Dec 23, 2010
  • profalbert added a tag Accepted Dec 23, 2010
  • profalbert posted a comment Jan 9, 2011

    ah, btw this should work now


To post a comment, please login or register a new account.