Profiles handling fixes.

Fixed profile update with some fields changed, now it won't show
error dialog.

Removed "Second X session" checkbox column from profiles list,
have no idea (for now) how to properly use them.
This commit is contained in:
2016-10-06 16:31:31 +05:00
parent 8691975dca
commit 99435a769f
3 changed files with 18 additions and 3 deletions

View File

@@ -324,7 +324,7 @@ func (op *OptionsProfile) saveProfile() {
}
}
if found {
if found && profile.Version == op.old_profile.Version && profile.Binary == op.old_profile.Binary && profile.Name == op.old_profile.Name && profile.Second_x_session == op.old_profile.Second_x_session {
mbox_string := "Game profile with same name already exist.\nRename profile for saving."
m := gtk.NewMessageDialog(op.window, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, mbox_string)
m.Response(func() {