提交 4b93b42d 编写于 作者: J jp9000

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.
上级 c9f85f16
......@@ -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,
......
......@@ -75,8 +75,6 @@ private:
bool loaded = false;
QPointer<QTimer> saveTimer;
QPointer<QThread> updateCheckThread;
QPointer<QThread> logUploadThread;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册