0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Do not save at intervals

Saving at intervals is a poor way to handle saving issues in general.
Best to just save when something has been modified instead.
This commit is contained in:
jp9000 2015-06-30 05:01:06 -07:00
parent c9f85f167c
commit 4b93b42ded
2 changed files with 0 additions and 9 deletions

View File

@ -750,10 +750,6 @@ void OBSBasic::OBSInit()
TimedCheckForUpdates();
loaded = true;
saveTimer = new QTimer(this);
connect(saveTimer, SIGNAL(timeout()), this, SLOT(SaveProject()));
saveTimer->start(20000);
bool previewEnabled = config_get_bool(App()->GlobalConfig(),
"BasicWindow", "PreviewEnabled");
if (!previewEnabled)
@ -1999,9 +1995,6 @@ void OBSBasic::closeEvent(QCloseEvent *event)
// the destructor gets called
obs_remove_draw_callback(OBSBasic::RenderMain, this);
/* Delete the save timer so it doesn't trigger after this point while
* the program data is being freed */
delete saveTimer;
SaveProject();
/* Clear all scene data (dialogs, widgets, widget sub-items, scenes,

View File

@ -75,8 +75,6 @@ private:
bool loaded = false;
QPointer<QTimer> saveTimer;
QPointer<QThread> updateCheckThread;
QPointer<QThread> logUploadThread;