i am an idiot
This commit is contained in:
parent
c390a05c61
commit
952f5fbe2c
2 changed files with 17 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
|||
xmlns:local="clr-namespace:EnvyUpdate"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
mc:Ignorable="d"
|
||||
Title="EnvyUpdate" Height="170.864" Width="463.435" Icon="icon.ico" ResizeMode="CanMinimize" StateChanged="Window_StateChanged" Closing="Window_Closing">
|
||||
Title="EnvyUpdate" Height="170" Width="463" Icon="icon.ico" ResizeMode="CanMinimize" StateChanged="Window_StateChanged" Closing="Window_Closing">
|
||||
<Grid Margin="0,0,0,6">
|
||||
<tb:TaskbarIcon IconSource="/icon.ico" ToolTipText="EnvyUpdate" TrayLeftMouseDown="TaskbarIcon_TrayLeftMouseDown" />
|
||||
<TextBlock HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontWeight="Bold" Width="151"><Run Text="Local d"/><Run Text="river "/><Run Text="v"/><Run Text="ersion:"/></TextBlock>
|
||||
|
|
|
@ -21,8 +21,7 @@ namespace EnvyUpdate
|
|||
private readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location;
|
||||
private readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\";
|
||||
private readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
||||
private readonly string version = "1.2";
|
||||
private readonly string argument = Environment.GetCommandLineArgs()[1];
|
||||
private readonly string version = "1.3";
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
|
@ -55,8 +54,9 @@ namespace EnvyUpdate
|
|||
//Silently fail.
|
||||
}
|
||||
}
|
||||
|
||||
if (argument == "--ignore-gpu")
|
||||
try
|
||||
{
|
||||
if (Environment.GetCommandLineArgs()[1] == "--ignore-gpu")
|
||||
{
|
||||
MessageBox.Show("Skipping GPU check!");
|
||||
textblockGPU.Text = "Check skipped.";
|
||||
|
@ -74,6 +74,8 @@ namespace EnvyUpdate
|
|||
Environment.Exit(255);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IndexOutOfRangeException) { }
|
||||
|
||||
if (File.Exists(appdata + "nvidia-update.txt"))
|
||||
{
|
||||
|
|
Reference in a new issue