Skip to content

Commit ab8377f

Browse files
committed
Testing env variable
1 parent a211032 commit ab8377f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CompactGUI/Components/Settings/Settings_main.xaml.vb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Class Settings_main
1414
uiIsStartMenuEnabled.IsChecked = SettingsHandler.AppSettings.IsStartMenuEnabled
1515
comboBoxSkipUserResultsAggression.SelectedIndex = SettingsHandler.AppSettings.SkipUserFileTypesLevel
1616

17+
SetEnv()
18+
19+
End Sub
20+
21+
Private Async Sub SetEnv()
22+
Await Task.Run(Sub() Environment.SetEnvironmentVariable("IridiumIO", IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "IridiumIO"), EnvironmentVariableTarget.User))
1723
End Sub
1824

1925
Private Sub uiIsContextEnabled_Checked(sender As Object, e As RoutedEventArgs) Handles uiIsContextEnabled.Checked

0 commit comments

Comments
 (0)