Skip to content

Commit

Permalink
Move memory card directory and icon creation to thread
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Aug 1, 2020
1 parent c410d64 commit ba2bc14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/opl.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,10 @@ static void _saveConfig()
configSetStr(configNet, CONFIG_NET_SMB_PASSW, gPCPassword);
}

char *path = configGetDir();
if (!strncmp(path, "mc", 2))
checkMCFolder();

lscret = configWriteMulti(lscstatus);
if (lscret == 0)
lscret = trySaveAlternateDevice(lscstatus);
Expand Down Expand Up @@ -956,8 +960,6 @@ int saveConfig(int types, int showUI)
if (showUI) {
if (lscret) {
char *path = configGetDir();
if (!strncmp(path, "mc", 2))
checkMCFolder();

snprintf(notification, sizeof(notification), _l(_STR_SETTINGS_SAVED), path);

Expand Down

0 comments on commit ba2bc14

Please sign in to comment.