try to fix build

This commit is contained in:
ouwou
2023-03-14 13:24:02 -04:00
parent 135f631761
commit c075f16c17
2 changed files with 3 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ jobs:
cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }}
cmake --build build cmake --build build
- name: Build (2) }} - name: Build (2)
run: ${{ steps.build.outputs.value }} run: ${{ steps.build.outputs.value }}
- name: Setup Artifact - name: Setup Artifact

View File

@@ -763,6 +763,7 @@ Gtk::TreeModel::iterator ChannelList::AddGuild(const GuildData &guild, const Gtk
m_tmp_row_map[thread.ID] = CreateThreadRow(row.children(), thread); m_tmp_row_map[thread.ID] = CreateThreadRow(row.children(), thread);
}; };
#ifdef WITH_VOICE
auto add_voice_participants = [this, &discord](const ChannelData &channel, const Gtk::TreeNodeChildren &root) { auto add_voice_participants = [this, &discord](const ChannelData &channel, const Gtk::TreeNodeChildren &root) {
for (auto user_id : discord.GetUsersInVoiceChannel(channel.ID)) { for (auto user_id : discord.GetUsersInVoiceChannel(channel.ID)) {
const auto user = discord.GetUser(user_id); const auto user = discord.GetUser(user_id);
@@ -777,6 +778,7 @@ Gtk::TreeModel::iterator ChannelList::AddGuild(const GuildData &guild, const Gtk
} }
} }
}; };
#endif
for (const auto &channel : orphan_channels) { for (const auto &channel : orphan_channels) {
auto channel_row = *m_model->append(guild_row.children()); auto channel_row = *m_model->append(guild_row.children());