Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update currency and language setting on the Setting page #626

Merged
merged 2 commits into from Sep 15, 2021

Conversation

JustinBeBoy
Copy link
Contributor

This PR resolve #603

  • Remove cancel and confirm buttons on the modals setting language and currency on setting page
  • Get the setting of language and currency when starting app

- get setting of language and currency when start app
Copy link
Contributor

@Sirmorrison Sirmorrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This methods are no longer needed.

func (lp *ListPreference) PostiveButton(strkey string, clicked func()) *ListPreference {

func (lp *ListPreference) NegativeButton(strkey string, clicked func()) *ListPreference {

func (lp *ListPreference) layoutButtons() []layout.FlexChild {

ui/page/main_page.go Outdated Show resolved Hide resolved
titleStrKey string
items map[string]string //[key]str-key
itemKeys []string
isAutoUpdate bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant. What exactly is it supposed to be used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It use to add title for modal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was referring to the isAutoUpdate

ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/preference/list_preference.go Outdated Show resolved Hide resolved
ui/page/settings_page.go Outdated Show resolved Hide resolved
ui/page/main_page.go Outdated Show resolved Hide resolved
ui/page/main_page.go Outdated Show resolved Hide resolved
Copy link
Contributor

@Sirmorrison Sirmorrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR failed github build...

Kindly run go fmt ./... it should resolve the issue.

lp.setValue(lp.optionsRadioGroup.Value)
lp.IsShowing = false
lp.updateButtonClicked()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove whitespace

@Sirmorrison Sirmorrison merged commit 41ab8cb into planetdecred:master Sep 15, 2021
song50119 pushed a commit to song50119/godcr that referenced this pull request Apr 24, 2022
…d#626)

* remove cancel and confirm buttons from the setting page language and currency modal
- get setting of language and currency when start app
- remove methods redundant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove confirm and cancel button from modals with radio button.
3 participants