Skip to content

Commit

Permalink
GNOME - Fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Mar 3, 2024
1 parent f23f5be commit 21bbbae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions libdenaro/src/models/currencyconversionservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ namespace Nickvision::Money::Shared::Models
if(!response.empty())
{
Json::Reader reader;
if(!reader.parse(response, json, false) || json.get("result", "").asString() != "success")
{
return {};
}
reader.parse(response, json, false);
}
}
if(!json.empty())
Expand Down
12 changes: 6 additions & 6 deletions org.nickvision.money.gnome/src/views/preferencesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ namespace Nickvision::Money::GNOME::Views
//Load
GdkRGBA color;
adw_combo_row_set_selected(ADW_COMBO_ROW(gtk_builder_get_object(m_builder, "themeRow")), static_cast<unsigned int>(m_controller->getTheme()));
gdk_rgba_parse(&color, m_controller->getTransactionDefaultColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getTransactionDefaultColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "transactionColorButton")), &color);
gdk_rgba_parse(&color, m_controller->getTransferDefaultColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getTransferDefaultColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "transferColorButton")), &color);
gdk_rgba_parse(&color, m_controller->getGroupDefaultColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getGroupDefaultColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "groupColorButton")), &color);
gdk_rgba_parse(&color, m_controller->getAccountCheckingColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getAccountCheckingColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "accountCheckingColorButton")), &color);
gdk_rgba_parse(&color, m_controller->getAccountSavingsColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getAccountSavingsColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "accountSavingsColorButton")), &color);
gdk_rgba_parse(&color, m_controller->getAccountBusinessColor().toRGBString(true));
gdk_rgba_parse(&color, m_controller->getAccountBusinessColor().toRGBString(true).c_str());
gtk_color_dialog_button_set_rgba(GTK_COLOR_DIALOG_BUTTON(gtk_builder_get_object(m_builder, "accountBusinessColorButton")), &color);
adw_combo_row_set_selected(ADW_COMBO_ROW(gtk_builder_get_object(m_builder, "insertSeparatorRow")), static_cast<unsigned int>(m_controller->getInsertSeparator()));
}
Expand Down

0 comments on commit 21bbbae

Please sign in to comment.