Skip to content

Commit

Permalink
fix: implemented restore wallet base on input seed (#553)
Browse files Browse the repository at this point in the history
* refactor: separate pages into one function for SRP

* fix: append and remove index pages

* fix: page index for restore and create

* feat: implemented restore wallet base on input seed

fixed #522

* fix: lint error ineffectual assignment to pageWidget

* refactor: remove OpenURLInBrowser from utils and test

fixed #551

* fix: crash on setup assistant
  • Loading branch information
Ja7ad committed Jun 30, 2023
1 parent 5beaf33 commit 4fe181f
Show file tree
Hide file tree
Showing 5 changed files with 306 additions and 197 deletions.
7 changes: 3 additions & 4 deletions cmd/gtk/main_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/gotk3/gotk3/gtk"
"github.com/pactus-project/pactus/crypto"
"github.com/pactus-project/pactus/util"
)

//go:embed assets/ui/main_window.ui
Expand Down Expand Up @@ -84,19 +83,19 @@ func (mw *mainWindow) OnTransactionTransfer() {
}

func (mw *mainWindow) onMenuItemActivateWebsite(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactus.org/"); err != nil {
if err := openURLInBrowser("https://pactus.org/"); err != nil {
fatalErrorCheck(err)
}
}

func (mw *mainWindow) onMenuItemActivateExplorer(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactusscan.com/"); err != nil {
if err := openURLInBrowser("https://pactusscan.com/"); err != nil {
fatalErrorCheck(err)
}
}

func (mw *mainWindow) onMenuItemActivateLearn(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactus.org/learn/"); err != nil {
if err := openURLInBrowser("https://pactus.org/learn/"); err != nil {
fatalErrorCheck(err)
}
}
Expand Down

0 comments on commit 4fe181f

Please sign in to comment.