Skip to content

Commit 284c3ad

Browse files
committed
fix: delay remote index load
1 parent b7951b9 commit 284c3ad

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

app/src/tab/remote_tab.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ void RemoteTab::onCreate() {
3939

4040
auto c = remote::create(r);
4141
auto view = new RemoteView(c, r.name);
42-
view->push(c->rootPath());
43-
44-
this->tabFrame->addTab(item, [view]() { return view; });
42+
this->tabFrame->addTab(item, [view, c]() {
43+
view->push(c->rootPath());
44+
return view;
45+
});
4546
} catch (const std::exception& ex) {
4647
brls::Logger::warning("remote {} create {}", r.name, ex.what());
4748
}

app/src/utils/config.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ bool AppConfig::init() {
175175
}
176176
}
177177

178-
#if defined(__APPLE__) || defined(__linux__) || defined(_WIN32)
178+
#if defined(_WIN32) && !defined(_WINRT_)
179179
misc::initCrashDump();
180+
#endif
180181

182+
#if defined(__APPLE__) || defined(__linux__) || defined(_WIN32)
181183
if (this->getItem(AppConfig::SINGLE, false) && misc::sendIPC(this->ipcSocket(), "{}")) {
182184
brls::Logger::warning("AppConfig single instance");
183185
return false;

0 commit comments

Comments
 (0)