This commit is contained in:
Mikael Karlsson
2022-08-08 21:54:53 +10:00
parent 37965cb290
commit 4d3d8a3060
3 changed files with 21 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
RootModule = 'CloudAPIPowerShellManagement.psm1'
# Version number of this module.
ModuleVersion = '3.7.0'
ModuleVersion = '3.7.1'
# Supported PSEditions
# CompatiblePSEditions = @()

View File

@@ -11,7 +11,7 @@ This module handles the WPF UI
function Get-ModuleVersion
{
'3.7.0'
'3.7.1'
}
function Initialize-Window
@@ -912,6 +912,15 @@ function Set-EnvironmentInfo
return
}
if(-not $script:mnuDefaultBGColor)
{
$script:mnuDefaultBGColor = $global:mnuMain.Background
}
if(-not $script:mnuDefaultFGColor)
{
$script:mnuDefaultFGColor = $global:mnuMain.Foreground
}
if($global:grdEnvironment -and $environmentName)
{
$global:grdEnvironment.Visibility = "Visible"
@@ -924,15 +933,7 @@ function Set-EnvironmentInfo
$global:lblEnvironment.Content = ""
}
$bgColor = (Get-SettingValue "MenuBGColor")
$fgColor = (Get-SettingValue "MenuFGColor")
if(-not $script:mnuDefaultBGColor)
{
$script:mnuDefaultBGColor = $global:mnuMain.Background
}
if(-not $script:mnuDefaultFGColor)
{
$script:mnuDefaultFGColor = $global:mnuMain.Foreground
}
$fgColor = (Get-SettingValue "MenuFGColor")
if(-not $bgColor)
{
@@ -959,7 +960,7 @@ function Set-EnvironmentInfo
else
{
$global:grdEnvironment.Visibility = "Collapsed"
$global:lblEnvironment.Text = ""
$global:lblEnvironment.Content = ""
$global:mnuMain.Background = $script:mnuDefaultBGColor
$global:mnuMain.Foreground = $script:mnuDefaultFGColor
$global:lblEnvironment.Foreground = $script:mnuDefaultFGColor

View File

@@ -1,5 +1,12 @@
# Release Notes
## 3.7.0 - 2022-07-17
## 3.7.1 - 2022-08-08
**Fixes**
- **UI**<br />
- Fixed a bug where the menu bar was empty if not logged in<br />
## 3.7.0 - 2022-08-02
**Breaking changes**
- A third header level was added when documenting to word<br />