save non-destructive changes on "Play game" button

In game config, when the play game button's hit and the changes pending don't
"matter" (require reset), apply them. The motiviation is to allow
setting the "disableds" and immediately launching a game via the button,
but I think it's the right thing to do anyway. Needs testing.
This commit is contained in:
Eric House 2017-06-16 19:18:30 -07:00
parent 7bae112077
commit 7f48267397
2 changed files with 2 additions and 2 deletions

View file

@ -752,7 +752,7 @@ public class GameConfigDelegate extends DelegateBase
|| m_carOrig.changesMatter(m_car) ) { || m_carOrig.changesMatter(m_car) ) {
showDialogFragment( DlgID.CONFIRM_CHANGE_PLAY ); showDialogFragment( DlgID.CONFIRM_CHANGE_PLAY );
} else { } else {
finishAndLaunch(); saveAndClose( false );
} }
break; break;
default: default:

View file

@ -436,7 +436,7 @@ public class GameUtils {
public static void resendAllIf( Context context, CommsConnType filter, public static void resendAllIf( Context context, CommsConnType filter,
boolean force ) boolean force )
{ {
final boolean showUI = force; boolean showUI = force;
long now = Utils.getCurSeconds(); long now = Utils.getCurSeconds();
if ( !force ) { if ( !force ) {