Skip to content

Commit

Permalink
Fix windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescan committed Aug 11, 2024
1 parent 0ab4766 commit 5926183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/TacentView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4282,7 +4282,7 @@ int main(int argc, char** argv)
staticDataDir = isDev ? (progDir + "Data/") : "/usr/share/tacentview/Data/";
tString localAppDir = isDev ? staticDataDir : homeDir + ".tacentview/";
if (!tSystem::tDirExists(localAppDir))
tSystem::tCreateDir(localAppDir);
tSystem::tCreateDir(localAppDir);

cfgFile = localAppDir + "Viewer.cfg";
Viewer::Image::ThumbCacheDir = localAppDir + "Cache/";
Expand Down Expand Up @@ -4380,7 +4380,7 @@ int main(int argc, char** argv)
DwmSetWindowAttribute(hwnd, DWMWA_USE_IMMERSIVE_DARK_MODE_A, &isDarkMode, sizeof(isDarkMode));
DwmSetWindowAttribute(hwnd, DWMWA_USE_IMMERSIVE_DARK_MODE_B, &isDarkMode, sizeof(isDarkMode));

if (!tSystem::tDirExists(dataDir))
if (!tSystem::tDirExists(staticDataDir))
{
::MessageBoxA
(
Expand Down

0 comments on commit 5926183

Please sign in to comment.