Files
oak-editor/app/dialog/preferences/tabs/preferencesdisktab.h
T
itsmattkc 362cb9daef made auto-deleting cache on close an option
Previously we had no disk management whatsoever, so we cleared the cache on
every close just to prevent clogging up tester disk space. Now that we are
implementing disk management, there are better things to do on close regarding
disk cache. However, some users may still wish for the app to delete the cache
on close, so it's provided as an option.
2020-01-09 21:00:04 +11:00

35 lines
560 B
C++

#ifndef PREFERENCESDISKTAB_H
#define PREFERENCESDISKTAB_H
#include <QCheckBox>
#include <QLineEdit>
#include "preferencestab.h"
#include "widget/slider/floatslider.h"
class PreferencesDiskTab : public PreferencesTab
{
Q_OBJECT
public:
PreferencesDiskTab();
virtual void Accept() override;
private:
QLineEdit* disk_cache_location_;
FloatSlider* maximum_cache_slider_;
QCheckBox* clear_disk_cache_;
private slots:
void DiskCacheLineEditChanged();
void BrowseDiskCachePath();
void ClearDiskCache();
};
#endif // PREFERENCESDISKTAB_H