wip-flag-migration #28
@ -80,10 +80,6 @@ func (fm *FlagManager) GetFlag(label string) (uint32, error) {
 | 
				
			|||||||
	return fm.parser.GetFlag(label)
 | 
						return fm.parser.GetFlag(label)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type FlagParserInterface interface {
 | 
					 | 
				
			||||||
	GetFlag(key string) (uint32, error)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type Handlers struct {
 | 
					type Handlers struct {
 | 
				
			||||||
	fs                 *FSData
 | 
						fs                 *FSData
 | 
				
			||||||
	db                 *gdbm.Database
 | 
						db                 *gdbm.Database
 | 
				
			||||||
@ -124,18 +120,6 @@ func isValidPIN(pin string) bool {
 | 
				
			|||||||
	return match
 | 
						return match
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (h *Handlers) PreloadFlags(flagKeys []string) (map[string]uint32, error) {
 | 
					 | 
				
			||||||
	flags := make(map[string]uint32)
 | 
					 | 
				
			||||||
	for _, key := range flagKeys {
 | 
					 | 
				
			||||||
		flag, err := h.flagManager.GetFlag(key)
 | 
					 | 
				
			||||||
		if err != nil {
 | 
					 | 
				
			||||||
			return nil, err
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		flags[key] = flag
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return flags, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// SetLanguage sets the language across the menu
 | 
					// SetLanguage sets the language across the menu
 | 
				
			||||||
func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (resource.Result, error) {
 | 
					func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (resource.Result, error) {
 | 
				
			||||||
	res := resource.Result{}
 | 
						res := resource.Result{}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user