Skip to content

Commit

Permalink
Show all paths to backup even if they are not configured on client
Browse files Browse the repository at this point in the history
  • Loading branch information
uroni committed Sep 11, 2022
1 parent 9a6e3e5 commit d588e30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ConfigPath.cpp
Expand Up @@ -70,7 +70,6 @@ ConfigPath::ConfigPath(wxWindow* parent)
std::vector<std::string> default_dirs_toks;

size_t num_group_off = 0;
if (default_dirs_use & c_use_group)
{
std::string val;
if (settings.getValue("default_dirs.group", &val))
Expand All @@ -80,7 +79,6 @@ ConfigPath::ConfigPath(wxWindow* parent)
}
}
size_t num_home_off = num_group_off;
if (default_dirs_use & c_use_value)
{
std::string val;
std::vector<std::string> toks;
Expand All @@ -91,7 +89,6 @@ ConfigPath::ConfigPath(wxWindow* parent)
num_home_off = default_dirs_toks.size();
}
}
if (default_dirs_use & c_use_value_client)
{
std::string val;
std::vector<std::string> toks;
Expand Down Expand Up @@ -205,7 +202,6 @@ void ConfigPath::OnClickNew(wxCommandEvent &evt)
int rc=ed.ShowModal();
if(rc==wxID_OK)
{
listbox->Append(ed.GetPath() );
SBackupDir ad;
ad.path=ed.GetPath();
ad.name=getDefaultDirname(ad.path.wc_str());
Expand All @@ -216,6 +212,7 @@ void ConfigPath::OnClickNew(wxCommandEvent &evt)

default_dirs_use |= c_use_value_client;
switchBitmapLabel();
renderListBoxContent();

mod=true;
}
Expand Down

0 comments on commit d588e30

Please sign in to comment.