Set appropriate migration version number for new installations

This commit is contained in:
Chocobo1 2021-12-23 14:36:19 +08:00
parent 39f054eef6
commit e7ebbffbfd
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 10 additions and 2 deletions

View file

@ -188,7 +188,6 @@ int main(int argc, char *argv[])
#ifndef DISABLE_GUI
if (!userAgreesWithLegalNotice())
return EXIT_SUCCESS;
#elif defined(Q_OS_WIN)
if (_isatty(_fileno(stdin))
&& _isatty(_fileno(stdout))
@ -201,6 +200,8 @@ int main(int argc, char *argv[])
&& !userAgreesWithLegalNotice())
return EXIT_SUCCESS;
#endif
setCurrentMigrationVersion();
}
// Check if qBittorrent is already running for this user