internal void UpdateIsCommentWarningNeeded(string comment) { mIsEmptyCheckinCommentWarningNeeded = string.IsNullOrEmpty(comment) && GuiClientConfig.Get().Configuration.ShowEmptyCommentWarning; mNeedsToShowEmptyCommentDialog = mIsEmptyCheckinCommentWarningNeeded; }
internal static bool ShouldContinueWithCheckin( EditorWindow parentWindow, WorkspaceInfo wkInfo) { var dialog = Create(wkInfo); // using the apply response as the 'Check In Anyway' button click if (dialog.RunModal(parentWindow) != ResponseType.Apply) { return(false); } if (dialog.UserChoseToNotDisplayWarningAgain) { var guiClientConfig = GuiClientConfig.Get(); guiClientConfig.Configuration.ShowEmptyCommentWarning = false; guiClientConfig.Save(); } return(true); }