commit
f58993870b
|
@ -46,7 +46,7 @@ func (s *EncString) UnmarshalText(data []byte) error {
|
|||
|
||||
i := bytes.IndexByte(data, '.')
|
||||
if i < 0 {
|
||||
return errors.New("invalid cipher string format, missign type. total length: " + strconv.Itoa(len(data)))
|
||||
return errors.New("invalid cipher string format, missing type. total length: " + strconv.Itoa(len(data)))
|
||||
}
|
||||
|
||||
typStr := string(data[:i])
|
||||
|
|
|
@ -16,7 +16,7 @@ const bufferSize = 8192 * 8
|
|||
var nativeEndian binary.ByteOrder
|
||||
|
||||
func setupCommunication() {
|
||||
// determine native endianess
|
||||
// determine native endianness
|
||||
var one int16 = 1
|
||||
b := (*byte)(unsafe.Pointer(&one))
|
||||
if *b == 0 {
|
||||
|
|
|
@ -144,7 +144,7 @@ var setVaultURLCmd = &cobra.Command{
|
|||
var setURLsAutomaticallyCmd = &cobra.Command{
|
||||
Use: "set-server",
|
||||
Short: "Set the urls automatically",
|
||||
Long: `Set the api/identity/vault/notification urls automaticall from a base url.`,
|
||||
Long: `Set the api/identity/vault/notification urls automatically from a base url.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
return
|
||||
|
|
|
@ -109,7 +109,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||
self.results_list.hide()
|
||||
|
||||
keycont = Gtk.EventControllerKey()
|
||||
def handle_keypress(cotroller, keyval, keycode, state, user_data):
|
||||
def handle_keypress(controller, keyval, keycode, state, user_data):
|
||||
ctrl_pressed = state & Gdk.ModifierType.CONTROL_MASK > 0
|
||||
alt_pressed = state & Gdk.ModifierType.ALT_MASK > 0
|
||||
|
||||
|
@ -155,7 +155,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||
if ctrl_pressed and alt_pressed:
|
||||
Gtk.show_uri(None, self.results_list.get_selected_row().uri, Gdk.CURRENT_TIME)
|
||||
elif keyval == 116:
|
||||
totp_code = totp.totp(self.resuts_list.get_selected_row().totp)
|
||||
totp_code = totp.totp(self.results_list.get_selected_row().totp)
|
||||
if ctrl_pressed and not alt_pressed:
|
||||
set_clipboard(totp_code)
|
||||
if ctrl_pressed and alt_pressed:
|
||||
|
|
|
@ -47,7 +47,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||
|
||||
self.ssh_socket_path_group = Adw.PreferencesGroup()
|
||||
self.ssh_socket_path_group.set_title("SSH Socket Path")
|
||||
self.ssh_socket_path_group.set_description("Add this to your your enviorment variables")
|
||||
self.ssh_socket_path_group.set_description("Add this to your environment variables")
|
||||
self.preferences_page.add(self.ssh_socket_path_group)
|
||||
|
||||
self.ssh_socket_path_row = Adw.ActionRow()
|
||||
|
|
Loading…
Reference in New Issue