summaryrefslogtreecommitdiff
path: root/RealtimeSync/functions.cpp
blob: f966187e0893c985156129a946864ab554cb6216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "functions.h"
#include <wx/textctrl.h>
#include <wx/filepicker.h>
//#include "../shared/globalFunctions.h"
#include "../shared/fileHandling.h"


void RealtimeSync::setDirectoryName(const wxString& dirname, wxTextCtrl* txtCtrl, wxDirPickerCtrl* dirPicker)
{
    txtCtrl->SetValue(dirname);
    const Zstring leftDirFormatted = FreeFileSync::getFormattedDirectoryName(dirname.c_str());
    if (wxDirExists(leftDirFormatted.c_str()))
        dirPicker->SetPath(leftDirFormatted.c_str());
}

bgstack15