Skip to content

Commit

Permalink
fixes #158 - do not show cancel key binding help for notification mes…
Browse files Browse the repository at this point in the history
…sage dialog
  • Loading branch information
d99kris committed Dec 9, 2023
1 parent 7f721ec commit b5d80cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.10"
#define NCHAT_VERSION "4.11"
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "December 2023" "nchat v4.10" "User Commands"
.TH NCHAT "1" "December 2023" "nchat v4.11" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
3 changes: 1 addition & 2 deletions src/uihelpview.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// uihelpview.cpp
//
// Copyright (c) 2019-2021 Kristofer Berggren
// Copyright (c) 2019-2023 Kristofer Berggren
// All rights reserved.
//
// nchat is distributed under the MIT license, see LICENSE for details.
Expand Down Expand Up @@ -44,7 +44,6 @@ void UiHelpView::Draw()
static std::vector<std::wstring> messageDialogHelpItems = []()
{
std::vector<std::wstring> helpItems;
AppendHelpItem(UiKeyConfig::GetKey("cancel"), "Cancel", helpItems);
AppendHelpItem(UiKeyConfig::GetKey("return"), "OK", helpItems);
return helpItems;
}();
Expand Down

0 comments on commit b5d80cd

Please sign in to comment.