Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmohsin7 committed Mar 13, 2024
1 parent 97a435b commit 8803545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/model/user_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Setting {
this.host,
this.path,
this.nodeId,
this.customLambdaServer,
this.lambdaServer,
this.customLambdaServer = false,
this.lambdaServer = "https://lnlambda.lnmetrics.info",
this.rune}) {
clientMode = ClientProvider.getClientByDefPlatform().first;
}
Expand Down
7 changes: 2 additions & 5 deletions lib/views/setting/lnlambda_setting_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ class _LnlambdaSettingViewState extends State<LnlambdaSettingView> {
),
const Text("Lambda Server"),
DropdownButtonFormField(
value: setting.customLambdaServer == null
? null
: setting.customLambdaServer == true
? 'custom'
: setting.lambdaServer,
value:
setting.customLambdaServer! ? 'custom' : setting.lambdaServer,
items: const [
DropdownMenuItem(
value: 'https://lnlambda.lnmetrics.info',
Expand Down

0 comments on commit 8803545

Please sign in to comment.