FIX: local file proto
Change-Id: Ie45dc223a027e3855f1242bfeed2f346b1df600f Jira: none
This commit is contained in:
parent
9f85798a0b
commit
e709ddacc8
|
@ -205,6 +205,8 @@ MediaFilePanel::MediaFilePanel(wxWindow * parent)
|
||||||
};
|
};
|
||||||
Bind(wxEVT_SHOW, onShowHide);
|
Bind(wxEVT_SHOW, onShowHide);
|
||||||
parent->GetParent()->Bind(wxEVT_SHOW, onShowHide);
|
parent->GetParent()->Bind(wxEVT_SHOW, onShowHide);
|
||||||
|
|
||||||
|
m_lan_user = "bblp";
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaFilePanel::~MediaFilePanel()
|
MediaFilePanel::~MediaFilePanel()
|
||||||
|
|
|
@ -1550,7 +1550,9 @@ void PrinterFileSystem::Reconnect(boost::unique_lock<boost::mutex> &l, int resul
|
||||||
ret = Bambu_StartStreamEx
|
ret = Bambu_StartStreamEx
|
||||||
? Bambu_StartStreamEx(tunnel, CTRL_TYPE)
|
? Bambu_StartStreamEx(tunnel, CTRL_TYPE)
|
||||||
: Bambu_StartStream(tunnel, false);
|
: Bambu_StartStream(tunnel, false);
|
||||||
} while (ret == Bambu_would_block);
|
if (ret == Bambu_would_block)
|
||||||
|
boost::this_thread::sleep(boost::posix_time::milliseconds(100));
|
||||||
|
} while (ret == Bambu_would_block && !m_stopped);
|
||||||
l.lock();
|
l.lock();
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
m_session.tunnel = tunnel;
|
m_session.tunnel = tunnel;
|
||||||
|
|
|
@ -197,7 +197,7 @@ public:
|
||||||
size_t GetIndexAtTime(boost::uint32_t time);
|
size_t GetIndexAtTime(boost::uint32_t time);
|
||||||
|
|
||||||
void ToggleSelect(size_t index);
|
void ToggleSelect(size_t index);
|
||||||
|
|
||||||
void SelectAll(bool select);
|
void SelectAll(bool select);
|
||||||
|
|
||||||
size_t GetSelectCount() const;
|
size_t GetSelectCount() const;
|
||||||
|
@ -210,12 +210,12 @@ public:
|
||||||
|
|
||||||
enum Status {
|
enum Status {
|
||||||
Initializing,
|
Initializing,
|
||||||
Connecting,
|
Connecting,
|
||||||
ListSyncing,
|
ListSyncing,
|
||||||
ListReady,
|
ListReady,
|
||||||
Failed,
|
Failed,
|
||||||
};
|
};
|
||||||
|
|
||||||
Status GetStatus() const { return m_status; }
|
Status GetStatus() const { return m_status; }
|
||||||
int GetLastError() const { return m_last_error; }
|
int GetLastError() const { return m_last_error; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue