From 94b7c4a52bc97026a9b24b7d703174f21f315912 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 2 Feb 2022 18:13:03 +0300 Subject: [PATCH] SaveWorkbookAs edit --- src/Interface/Dialog.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Interface/Dialog.cs b/src/Interface/Dialog.cs index 6b05dc8..f8ab645 100644 --- a/src/Interface/Dialog.cs +++ b/src/Interface/Dialog.cs @@ -58,9 +58,11 @@ namespace RehauSku.Interface workbook.Close(false); } - string fileName = dialog.FileName; - - workbook.SaveAs(fileName); + else + { + string fileName = dialog.FileName; + workbook.SaveAs(fileName); + } } } }