aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2024-11-14 00:16:03 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2024-11-14 00:16:03 +0300
commitbb338401856899d3f9e1506d31b00f1fb6b541ff (patch)
tree64af81463e8f8a59b673f7d921167d0392998d64
parent843f73fec8269a3c67e494f2abd8e0cd5f7b3d31 (diff)
Subscribe to deactivate workbook event
-rw-r--r--RhSolutions.AddIn/Tools/EventsUtil.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/RhSolutions.AddIn/Tools/EventsUtil.cs b/RhSolutions.AddIn/Tools/EventsUtil.cs
index 31063e4..a32dc47 100644
--- a/RhSolutions.AddIn/Tools/EventsUtil.cs
+++ b/RhSolutions.AddIn/Tools/EventsUtil.cs
@@ -10,6 +10,7 @@ internal static class EventsUtil
RhSolutionsAddIn.Excel.SheetSelectionChange += RefreshExportButton;
RhSolutionsAddIn.Excel.SheetActivate += RefreshButtons;
RhSolutionsAddIn.Excel.WorkbookActivate += RefreshButtons;
+ RhSolutionsAddIn.Excel.WorkbookDeactivate += RefreshButtons;
RhSolutionsAddIn.Configuration.OnSettingsChange += RefreshSettingTitle;
}
@@ -18,6 +19,7 @@ internal static class EventsUtil
RhSolutionsAddIn.Excel.SheetSelectionChange -= RefreshExportButton;
RhSolutionsAddIn.Excel.SheetActivate -= RefreshButtons;
RhSolutionsAddIn.Excel.WorkbookActivate -= RefreshButtons;
+ RhSolutionsAddIn.Excel.WorkbookDeactivate -= RefreshButtons;
RhSolutionsAddIn.Configuration.OnSettingsChange -= RefreshSettingTitle;
}