mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Break dependency cycle introduced at 50f3321...
... This only cuts and pastes some functions from FileNames to another new file and namespace, and changes namespace qualifiers where they are called. The cycle resulted because of the need to include widgets/ErrorDialog.h
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "../ProjectSelectionManager.h"
|
||||
#include "../toolbars/ToolManager.h"
|
||||
#include "../Screenshot.h"
|
||||
#include "../TempDirectory.h"
|
||||
#include "../UndoManager.h"
|
||||
#include "../commands/CommandContext.h"
|
||||
#include "../commands/CommandManager.h"
|
||||
@@ -379,7 +380,7 @@ void OnResetConfig(const CommandContext &context)
|
||||
gPrefs->DeleteAll();
|
||||
|
||||
// Directory will be reset on next restart.
|
||||
FileNames::UpdateDefaultPath(FileNames::Operation::Temp, FileNames::DefaultTempDir());
|
||||
FileNames::UpdateDefaultPath(FileNames::Operation::Temp, TempDirectory::DefaultTempDir());
|
||||
gPrefs->Write("/GUI/SyncLockTracks", 0);
|
||||
gPrefs->Write("/SnapTo", 0 );
|
||||
ProjectSelectionManager::Get( project ).AS_SetSnapTo( 0 );
|
||||
|
||||
Reference in New Issue
Block a user