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:
parent
c9f85f167c
commit
4b93b42ded
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user