Skip to content

Commit

Permalink
Merge pull request #305 from raisingthefloor/master
Browse files Browse the repository at this point in the history
Morphic for Windows v1.3.2
  • Loading branch information
christopher-rtf authored Sep 2, 2021
2 parents 47d52ce + fb91933 commit 9359ee0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Morphic.Client/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,32 @@ private async Task ResetSettingsAsync()
await Morphic.Client.Bar.Data.Actions.Functions.SetDarkModeStateAsync(darkModeEnabledDefault);
}
}
//
//
// word simplify
var isOfficeInstalled = Morphic.Integrations.Office.WordRibbon.IsOfficeInstalled();
if (isOfficeInstalled == true)
{
var isBasicSimplifyRibbonEnabledResult = Morphic.Integrations.Office.WordRibbon.IsBasicSimplifyRibbonEnabled();
if (isBasicSimplifyRibbonEnabledResult.IsSuccess == true)
{
var isBasicSimplifyRibbonEnabled = isBasicSimplifyRibbonEnabledResult.Value!;
if (isBasicSimplifyRibbonEnabled == true)
{
_ = Morphic.Integrations.Office.WordRibbon.DisableBasicSimplifyRibbon();
}
}

var isEssentialsSimplifyRibbonEnabledResult = Morphic.Integrations.Office.WordRibbon.IsEssentialsSimplifyRibbonEnabled();
if (isEssentialsSimplifyRibbonEnabledResult.IsSuccess == true)
{
var isEssentialsSimplifyRibbonEnabled = isEssentialsSimplifyRibbonEnabledResult.Value!;
if (isEssentialsSimplifyRibbonEnabled == true)
{
_ = Morphic.Integrations.Office.WordRibbon.DisableEssentialsSimplifyRibbon();
}
}
}
}

private async Task Session_UserChangedAsync(object? sender, MorphicSession.MorphicSessionSignInOrOutEventArgs e)
Expand Down

0 comments on commit 9359ee0

Please sign in to comment.