Skip to content
Snippets Groups Projects
  1. Dec 07, 2024
    • jkito's avatar
      ui: use NumberAnimation for state change animation · d92a1b6b
      jkito authored
      this fixes a bug where the UI was not updated when the
      window is not visible, turning vpn on/off via the tray
      didn't update the state correctly i.e the tray  icon's
      state would be stuck in the connecting state with  the
      yellow icon
      
      using NumberAnimation for the state transition instead
      of OpacityAnimator fixes the issue as it seems opacity
      animator only works when the window is visible
      d92a1b6b
  2. Dec 04, 2024
    • jkito's avatar
      show error message when app already running · a8b10af3
      jkito authored and jkito's avatar jkito committed
      this adds a new error type when app is not able to
      get a lock of the pid file as another instance  is
      already running, it then shows a msg and quits
      a8b10af3
  3. Nov 19, 2024
  4. Oct 13, 2024
  5. Sep 08, 2024
    • jkito's avatar
      build: donot rename built app binary · 30a03871
      jkito authored and jkito's avatar jkito committed
      earlier the qmake build always produced the binary named
      as bitmask and later it was renamed to whatever PROVIDER
      was set to, in the previous commit we fixed the  setting
      of TARGET env so that qmake produces the binary with the
      correct name
      30a03871
    • jkito's avatar
      build: pass in PROVIDER env variable to getparam script · 9e535d7c
      jkito authored and jkito's avatar jkito committed
      running 'getparam binname' should return the name we want to set
      for the qmake TARGET based on the PROVIDER from the  vendor.conf
      file, due to running it inside a subshell in make it always gets
      the value for the default provider, setting PROVIDER env returns
      the correct value
      
      it also updates the qmake project file to use the TARGET env var
      and the build script to pass TARGET to qmake command as arg
      9e535d7c
    • jkito's avatar
      qmake: pass RELEASE variable to qmake invocation · f09e7897
      jkito authored and jkito's avatar jkito committed
      qmake is not inheriting the env variables from the parent
      process to work around this, it is directly passed as arg
      to the qmake invocation
      f09e7897
    • jkito's avatar
      build: use RELEASE_DIR for path to release build dir · 80c6232e
      jkito authored and jkito's avatar jkito committed
      as the RELEASE env variable is used to switch between
      release or debug builds
      80c6232e
  6. Sep 03, 2024
    • Pea Nut's avatar
      Remove gui/providers/providers.json from git repo · d04fd4d3
      Pea Nut authored
      It gets generated with `make vendor`. After removing it from git repo,
      the gui/providers/ directory does not exist anymore. The
      gen-providers-json script fails. Therefore the script was fixed and now
      creates gui/providers/ directory.
      d04fd4d3
  7. Aug 18, 2024
  8. Aug 10, 2024
    • jkito's avatar
      Remove call to Quit from backend.quit method · bd2b8dcd
      jkito authored
      the backend.quit emits the 'quitDone' signal which also
      triggers the 'aboutToQuit' signal for the  QApplication
      since its handler calls 'QApplication::quit()'
      
      the handler for 'aboutToQuit' signal already calls Quit
      so removing it from backend.quit avoids another call to
      Quit
      bd2b8dcd
  9. Aug 07, 2024
    • jkito's avatar
      Revert "Don't run Quit() twice during startup" · d31102cd
      jkito authored
      This reverts commit b9fc3584.
      
      the aboutToQuit signal is emitted just before the app closes and
      gives chance to run some teardown routines, when closing the app
      via a keyboard shortcut (cmd+q on macOS) we get this signal  and
      the handler stops the firewall and performs other needed cleanup
      
      removing this causes a bug where quiting the app would keep  the
      firewall running which results into no internet access
      d31102cd
  10. Aug 03, 2024
  11. Jul 29, 2024
  12. Jul 22, 2024
  13. Jul 19, 2024
    • jkito's avatar
      cgo: set cgo compiler flags in backend.go · 09416b1d
      jkito authored and Pea Nut's avatar Pea Nut committed
      the C import line is recommended to be on a separate line
      this allows to use the comments in the lines preceeding it
      to setup various cpp compiler flags
      
      this also uses cgo comments to pass additional import dirs
      for the cpp compiler, these are needed for gopls to work
      09416b1d
    • jkito's avatar
      qt: pass char * to go functions from cpp helpers · 9d62d5e3
      jkito authored and Pea Nut's avatar Pea Nut committed
      instead of converting QString to GoString struct which is
      error prone, this changes SetTransport and UseLocation in
      backend.go to receive a char* as arg, which is  converted
      to Go string using the C.GoString helper
      
      this fixes a bug on macOS where changing preference options
      did not have any effect as the conversion of string was not
      working and empty values were passed to Go functions
      9d62d5e3
  14. Jun 21, 2024
  15. Jun 20, 2024
    • jkito's avatar
      chore: simplify setting of version for the app · 50108c0c
      jkito authored
      this removes the go generate way of generating the
      pkg/config/version.go file and uses build time  ld
      flags to set the version when building from git or
      uses .gitattributes to set it during git archive
      50108c0c
  16. Jun 19, 2024
Loading