misc stuff

This commit is contained in:
Green Sky
2025-09-02 10:57:34 +02:00
parent 3bf46dcaba
commit b6a68c830e
3 changed files with 4 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
g_crdtns = std::make_unique<CRDTNotesSync>(*g_crdtn, *cs); g_crdtns = std::make_unique<CRDTNotesSync>(*g_crdtn, *cs);
// register types // register types
PLUG_PROVIDE_INSTANCE(CRDTNotes, plugin_name, g_crdtn.get());
PLUG_PROVIDE_INSTANCE(CRDTNotesSync, plugin_name, g_crdtns.get()); PLUG_PROVIDE_INSTANCE(CRDTNotesSync, plugin_name, g_crdtns.get());
PLUG_PROVIDE_INSTANCE(CRDTNotesEventI, plugin_name, g_crdtns.get()); PLUG_PROVIDE_INSTANCE(CRDTNotesEventI, plugin_name, g_crdtns.get());
} catch (const ResolveException& e) { } catch (const ResolveException& e) {

View File

@@ -81,7 +81,7 @@ float CRDTNotesSync::iterate(float time_delta) {
_fetch_frontier_queue.erase(it); _fetch_frontier_queue.erase(it);
} }
return 1.f; return 2.f;
} }
CRDTNotes::Doc* CRDTNotesSync::getDoc(const CRDTNotes::DocID& doc_id) { CRDTNotes::Doc* CRDTNotesSync::getDoc(const CRDTNotes::DocID& doc_id) {

View File

@@ -106,6 +106,7 @@ float CRDTNotesImGui::render(void) {
const std::string docid_str = "Doc " + detail::to_hex(docid); const std::string docid_str = "Doc " + detail::to_hex(docid);
bool open = true; bool open = true;
ImGui::SetNextWindowSize({200, 200}, ImGuiCond_Appearing);
if (ImGui::Begin(docid_str.c_str(), &open)) { if (ImGui::Begin(docid_str.c_str(), &open)) {
renderDoc(docid); renderDoc(docid);
} }
@@ -120,7 +121,7 @@ float CRDTNotesImGui::render(void) {
} }
} }
return 1.f; return 2.f;
} }
bool CRDTNotesImGui::renderContactListContactSmall(const Contact4 c, const bool selected) const { bool CRDTNotesImGui::renderContactListContactSmall(const Contact4 c, const bool selected) const {