mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Move "memory priority" settings to Application class
This commit is contained in:
@@ -118,6 +118,11 @@ public:
|
||||
int memoryWorkingSetLimit() const override;
|
||||
void setMemoryWorkingSetLimit(int size) override;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
MemoryPriority processMemoryPriority() const override;
|
||||
void setProcessMemoryPriority(MemoryPriority priority) override;
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
MainWindow *mainWindow() override;
|
||||
#endif
|
||||
@@ -151,6 +156,7 @@ private:
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
void applyMemoryPriority() const;
|
||||
void adjustThreadPriority() const;
|
||||
#endif
|
||||
|
||||
@@ -183,6 +189,10 @@ private:
|
||||
SettingValue<Path> m_storeFileLoggerPath;
|
||||
SettingValue<int> m_storeMemoryWorkingSetLimit;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
SettingValue<MemoryPriority> m_processMemoryPriority;
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
MainWindow *m_window = nullptr;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user