File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 <WarningLevel >4</WarningLevel >
6262 </PropertyGroup >
6363 <PropertyGroup >
64- <StartupObject / >
64+ <StartupObject >Home_Assistant_Taskbar_Menu.App</ StartupObject >
6565 </PropertyGroup >
6666 <PropertyGroup >
6767 <ApplicationIcon >Images\small.ico</ApplicationIcon >
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ public static void InitConfigDirectory()
116116 string currentDir = Directory . GetCurrentDirectory ( ) . Split ( '\\ ' ) . ToList ( ) . Last ( ) ;
117117 string appData = Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) ;
118118 _basePath = $ "{ appData } \\ Home Assistant Taskbar Menu\\ { currentDir } ";
119+ Directory . CreateDirectory ( _basePath ) ;
119120 if ( ! IsConsoleAvailable ( ) )
120121 {
121122 FileStream fileStream = new FileStream ( LogPath , FileMode . Create ) ;
@@ -124,7 +125,6 @@ public static void InitConfigDirectory()
124125 Console . SetError ( streamWriter ) ;
125126 }
126127 ConsoleWriter . WriteLine ( $ "Config directory: { _basePath } ", ConsoleColor . DarkYellow ) ;
127- Directory . CreateDirectory ( _basePath ) ;
128128 MoveFile ( CredentialsPathOld , CredentialsPath ) ;
129129 MoveFile ( ViewConfigPathOld , ViewConfigPath ) ;
130130 }
You can’t perform that action at this time.
0 commit comments