Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
1.3.0 - Hungarian Forint // Fixed unicode symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Feb 1, 2020
1 parent 00b7edf commit 094be7f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
9 changes: 9 additions & 0 deletions data/com.github.lainsce.coin.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<releases>
<release version="1.3.0" date="2020-02-07">
<description>
<p>Release: Portuguese Reis</p>
<ul>
<li>Added: Hungarian Forint.</li>
<li>Fixed: Symbols of Bitcoin Cash, Tezos and Cardano Ada.</li>
</ul>
</description>
</release>
<release version="1.2.8" date="2020-01-30">
<description>
<p>Release: Greek Drachma</p>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Name our project
project('com.github.lainsce.coin', ['vala', 'c'],
version: '1.2.8'
version: '1.3.0'
)

# Import main lib files
Expand Down
31 changes: 19 additions & 12 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ namespace Coin {
base_currency.append_text(_("Japanese Yen"));
base_currency.append_text(_("Russian Ruble"));
base_currency.append_text(_("S. African Rand"));
base_currency.append_text(_("Hungarian Forint"));
base_currency.margin = 6;

base_currency.set_active(Coin.Application.gsettings.get_int("coin"));
Expand All @@ -89,7 +90,7 @@ namespace Coin {
base_vcurrency.append_text("ZCash");
base_vcurrency.append_text("Monero");
base_vcurrency.append_text("Bitcoin Cash");
base_vcurrency.append_text("Cardano");
base_vcurrency.append_text("Cardano Ada");
base_vcurrency.append_text("Tezos");
base_vcurrency.margin = 6;

Expand Down Expand Up @@ -271,6 +272,9 @@ namespace Coin {
} else if (Coin.Application.gsettings.get_int("coin") == 10) {
base_currency.set_active(10);
coin_iso = "ZAR";
} else if (Coin.Application.gsettings.get_int("coin") == 11) {
base_currency.set_active(11);
coin_iso = "HUF";
} else {
base_currency.set_active(0);
coin_iso = "USD";
Expand Down Expand Up @@ -345,18 +349,15 @@ namespace Coin {
var curr_symbol = "";
Coin.Application.gsettings.set_int("coin", base_currency.get_active());
switch (Coin.Application.gsettings.get_int("coin")) {
case 4:
curr_symbol = "R$";
break;
case 10:
curr_symbol = "R";
break;
case 1:
curr_symbol = "";
break;
case 2:
curr_symbol = "£";
break;
case 4:
curr_symbol = "R$";
break;
case 0:
case 3:
case 5:
Expand All @@ -366,11 +367,17 @@ namespace Coin {
case 6:
curr_symbol = "¥";
break;
case 7:
curr_symbol = "";
break;
case 9:
curr_symbol = "";
break;
case 7:
curr_symbol = "";
case 10:
curr_symbol = "R";
break;
case 11:
curr_symbol = "";
break;
default:
curr_symbol = "¤";
Expand Down Expand Up @@ -405,13 +412,13 @@ namespace Coin {
vcurr_symbol = "ɱ";
break;
case 8:
vcurr_symbol = "BC";
vcurr_symbol = "Ƀ";
break;
case 9:
vcurr_symbol = "ADA";
vcurr_symbol = "";
break;
case 10:
vcurr_symbol = "XTZ";
vcurr_symbol = "";
break;
default:
curr_symbol = "¬";
Expand Down

0 comments on commit 094be7f

Please sign in to comment.