diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-27 08:58:23 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-27 08:58:23 +0300 |
commit | 65d027179c837f26487f02dde090aaa5d3283ae7 (patch) | |
tree | c10fd83a51d0a4532c1ce8481e36f107ef7f6754 | |
parent | f6201475150863cc4d79c05d8a6db19df77ae63b (diff) |
Refactoring
-rw-r--r-- | RhSolutions.AddIn/Controllers/RibbonController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RhSolutions.AddIn/Controllers/RibbonController.cs b/RhSolutions.AddIn/Controllers/RibbonController.cs index b5edde0..03777cc 100644 --- a/RhSolutions.AddIn/Controllers/RibbonController.cs +++ b/RhSolutions.AddIn/Controllers/RibbonController.cs @@ -84,7 +84,7 @@ public class RibbonController : ExcelRibbon public bool GetConvertEnabled(IRibbonControl control) => _workbookIsValid; public bool GetDxfEnabled(IRibbonControl control) => _workbookIsValid; - public bool GetGuessEnabled(IRibbonControl control) => RhSolutionsAddIn.Excel.ActiveWorkbook == null ? false : !_workbookIsValid; + public bool GetGuessEnabled(IRibbonControl control) => RhSolutionsAddIn.Excel.ActiveWorkbook != null && !_workbookIsValid; public bool GetExportEnabled(IRibbonControl control) { |