From dfd2125cbad421961dc455e5909ca5cc9bb662a1 Mon Sep 17 00:00:00 2001 From: Yuri Gabriel <97139700+Yuuh15@users.noreply.github.com> Date: Sat, 10 Feb 2024 11:07:22 -0300 Subject: [PATCH] Fix some behavior of the buttons --- winutil.ps1 | 58 +++++++--------------------------------------- xaml/inputXML.xaml | 12 +++++----- 2 files changed, 14 insertions(+), 56 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 0f48a912..455ce611 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 24.02.09 + Version : 24.02.10 #> param ( [switch]$Debug, @@ -47,7 +47,7 @@ Add-Type -AssemblyName System.Windows.Forms # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "24.02.09" +$sync.version = "24.02.10" $sync.configs = @{} $sync.ProcessRunning = $false @@ -3849,48 +3849,6 @@ function Invoke-WPFRunspace { [System.GC]::Collect() } } -function Invoke-WPFSetWindowSize { - <# - .SYNOPSIS - Sets the window size according to the display resolution - #> - - param ($xamlContent) - $xamlContent = @" - -"@ - - [xml]$xaml = $xamlContent - $reader = New-Object System.Xml.XmlNodeReader $xaml - try { - $window = [Windows.Markup.XamlReader]::Load($reader) - } - catch { - Write-Error "Failed to load XAML: $_" - return - } - - Add-Type -AssemblyName System.Windows.Forms - $primaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen - $bounds = $primaryScreen.Bounds - - $newHeight = $window.FindName("MainWindow") - - if ($bounds.Height -lt 1080) { - $newHeight.Height = 720 - } - Write-Host "$newHeight" -} function Invoke-WPFShortcut { <# @@ -4771,13 +4729,13 @@ $inputXML = ' - + + + + + - - - - - + diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index 6f11163a..5a3c551b 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -254,13 +254,13 @@ - + + + + + - - - - - +