Skip to content

Commit

Permalink
Make sure we can access show directories selected from previous show …
Browse files Browse the repository at this point in the history
…menus
  • Loading branch information
dkulp committed Nov 22, 2024
1 parent f64a122 commit 292659d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions xLights/TabSetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ const long xLightsFrame::ID_NETWORK_UNLINKFROMBASE = wxNewId();
void xLightsFrame::OnMenuMRU(wxCommandEvent& event) {
int id = event.GetId();
wxString newdir = RecentShowFoldersMenu->GetLabel(id);

if (!ObtainAccessToURL(newdir, true)) {
std::string dstr = newdir;
PromptForDirectorySelection("Reselect Show Directory", dstr);
newdir = dstr;
}
SetDir(newdir, true);
}
void xLightsFrame::OnMRUSequence(wxCommandEvent& event) {
Expand Down
1 change: 0 additions & 1 deletion xLights/outputs/Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ void Output::SetResolvedIP(const std::string& resolvedIP) {
std::unique_lock<std::shared_mutex> lock(_resolveMutex);
if (resolvedIP != _resolvedIp) {
_resolvedIp = resolvedIP;
_dirty = true;
}
}

Expand Down

0 comments on commit 292659d

Please sign in to comment.