mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Implement upgrage code.
This commit is contained in:
parent
de712c6ba9
commit
b29f6916cb
4 changed files with 141 additions and 1 deletions
|
@ -75,6 +75,8 @@ Q_IMPORT_PLUGIN(qico)
|
|||
#include "core/utils/misc.h"
|
||||
#include "core/preferences.h"
|
||||
|
||||
#include "upgrade.h"
|
||||
|
||||
// Signal handlers
|
||||
#if defined(Q_OS_UNIX) || defined(STACKTRACE_WIN)
|
||||
void sigintHandler(int);
|
||||
|
@ -200,6 +202,8 @@ int main(int argc, char *argv[])
|
|||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if (!upgrade()) return EXIT_FAILURE;
|
||||
|
||||
srand(time(0));
|
||||
#ifdef DISABLE_GUI
|
||||
if (params.shouldDaemonize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue