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' RootModule = 'CloudAPIPowerShellManagement.psm1'
# Version number of this module. # Version number of this module.
ModuleVersion = '3.7.0' ModuleVersion = '3.7.1'
# Supported PSEditions # Supported PSEditions
# CompatiblePSEditions = @() # CompatiblePSEditions = @()

View File

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

View File

@@ -1,5 +1,12 @@
# Release Notes # 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** **Breaking changes**
- A third header level was added when documenting to word<br /> - A third header level was added when documenting to word<br />