Skip to content

Commit

Permalink
follow up ps-designer 2.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed May 10, 2024
1 parent 9e9851e commit 566e4ca
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .esh/commands/GUIfix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $XmlWriterSettings.NewLineChars = "`n"
Get-ChildItem -Path $repoPath -Recurse -Filter '*.fbs' | ForEach-Object {
$XmlDoc = [xml](Get-Content -Path $_.FullName)
$XmlWriter = [System.XML.XmlWriter]::Create($_.FullName, $XmlWriterSettings)
$XmlDoc.Data.ChildNodes | Where-Object { $_.Name -notmatch '(Form|Dialog)$' } | ForEach-Object { $_.ParentNode.RemoveChild($_) }
$XmlDoc.Save($XmlWriter)
$XmlWriter.WriteRaw("`n")
$XmlWriter.Flush()
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/DialogLoader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
)
$Xml = [xml](Get-Content "$LocalizeDir\$Localize.fbs" -Encoding utf8)
$Script:MainForm = $Xml.Data.Form.OuterXml
$Xml.Data.ChildNodes | Select-Object -Skip 2 | ForEach-Object {
$Xml.Data.ChildNodes | Where-Object { $_.Name -match 'Dialog$' } | ForEach-Object {
$Script:dialogInfo.Add($_.Name, $_.OuterXml)
}
$Script:LocalizeData = &"$LocalizeDir\$Localize.ps1"
Expand Down
1 change: 1 addition & 0 deletions src/locale/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

/*/Events.ps1
/*/Finds.txt
1 change: 0 additions & 1 deletion src/locale/en-UK.fbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Events Desc="Events associated with controls"></Events>
<Form Name="MainForm" Size="928,651" Tag="VisualStyle,DPIAware" Text="ps12exe GUI">
<GroupBox Name="InputsGroupBox" Location="8,1" Size="766,573">
<GroupBox Name="BaseIOGroupBox" Location="5,13" Size="626,102">
Expand Down
1 change: 0 additions & 1 deletion src/locale/es-ES.fbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Events Desc="Events associated with controls"></Events>
<Form Name="MainForm" Size="928,651" Tag="VisualStyle,DPIAware" Text="ps12exe GUI">
<GroupBox Name="InputsGroupBox" Location="8,1" Size="766,573">
<GroupBox Name="BaseIOGroupBox" Location="5,13" Size="626,102">
Expand Down
1 change: 0 additions & 1 deletion src/locale/hi-IN.fbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Events Desc="Events associated with controls"></Events>
<Form Name="MainForm" Size="928,651" Tag="VisualStyle,DPIAware" Text="ps12exe GUI">
<GroupBox Name="InputsGroupBox" Location="8,1" Size="766,573">
<GroupBox Name="BaseIOGroupBox" Location="5,13" Size="626,102">
Expand Down
1 change: 0 additions & 1 deletion src/locale/ja-JP.fbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Events Desc="Events associated with controls"></Events>
<Form Name="MainForm" Size="928,651" Tag="VisualStyle,DPIAware" Text="ps12exe GUI">
<GroupBox Name="InputsGroupBox" Location="8,1" Size="766,573">
<GroupBox Name="BaseIOGroupBox" Location="5,13" Size="626,102">
Expand Down
1 change: 0 additions & 1 deletion src/locale/zh-CN.fbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Data>
<Events Desc="Events associated with controls"></Events>
<Form Name="MainForm" Size="928,651" Tag="VisualStyle,DPIAware" Text="ps12exe GUI">
<GroupBox Name="InputsGroupBox" Location="8,1" Size="766,573">
<GroupBox Name="BaseIOGroupBox" Location="5,13" Size="626,102">
Expand Down

0 comments on commit 566e4ca

Please sign in to comment.