From 4b21660fd68adff072ce95b7ae7918df6270f16a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Dec 2017 10:22:39 -0500 Subject: [PATCH] only show cancel when coming from another page --- src/App/Pages/Tools/ToolsPasswordGeneratorPage.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Tools/ToolsPasswordGeneratorPage.cs b/src/App/Pages/Tools/ToolsPasswordGeneratorPage.cs index a7c66373a..a41e1850a 100644 --- a/src/App/Pages/Tools/ToolsPasswordGeneratorPage.cs +++ b/src/App/Pages/Tools/ToolsPasswordGeneratorPage.cs @@ -154,8 +154,11 @@ namespace Bit.App.Pages { table.RowHeight = -1; table.EstimatedRowHeight = 44; - ToolbarItems.Add(new DismissModalToolBarItem(this, - _passwordValueAction == null ? AppResources.Close : AppResources.Cancel)); + + if(_passwordValueAction == null) + { + ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel)); + } } var stackLayout = new StackLayout