Skip to content

Commit

Permalink
change password echo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HeatXD committed Jul 29, 2023
1 parent 71fb4a6 commit 54e8957
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/duckstation-qt/createnetplaysessiondialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<number>128</number>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/joinnetplaysessiondialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<number>128</number>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
Expand Down Expand Up @@ -216,7 +216,7 @@
<number>128</number>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/netplaydialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JoinNetplaySessionDialog::~JoinNetplaySessionDialog() = default;

void JoinNetplaySessionDialog::accept()
{
const bool direct_mode = !m_ui.tabDirect->isHidden();
const bool direct_mode = m_ui.tabTraversal->isHidden();
const bool valid = direct_mode ? validate() : validateTraversal();
if (!valid)
return;
Expand Down Expand Up @@ -125,5 +125,5 @@ bool JoinNetplaySessionDialog::validateTraversal()
void JoinNetplaySessionDialog::updateState()
{
m_ui.buttonBox->button(QDialogButtonBox::Ok)
->setEnabled(!m_ui.tabDirect->isHidden() ? validate() : validateTraversal());
->setEnabled(m_ui.tabTraversal->isHidden() ? validate() : validateTraversal());
}

0 comments on commit 54e8957

Please sign in to comment.