Skip to content

Commit 460c214

Browse files
bump to v1.4
1 parent 7a098ec commit 460c214

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
![Icon](data/icons/hicolor/scalable/apps/io.github.philippkosarev.bmi.svg)
12
# BMI
23
BMI is an open-source, body mass index calculator built with GTK4 and LibAdwaita.
34
![Screenshot](screenshot.png)
45

56
# Install
6-
<p><a href='[https://flathub.org/apps/details/org.nickvision.tubeconverter](https://flathub.org/apps/io.github.philippkosarev.bmi)'><img width='200' alt='Download on Flathub' src='https://flathub.org/api/badge?locale=en'/></a></p>
7+
<p><a href='https://flathub.org/apps/details/io.github.philippkosarev.bmi'><img width='150' alt='Download on Flathub' src='https://flathub.org/api/badge?locale=en'/></a></p>
78

89
Or via [Github Releases](https://github.com/PhilippKosarev/bmi/releases)
910

data/io.github.philippkosarev.bmi.metainfo.xml.in

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848

4949
<screenshots>
5050
<screenshot type="default">
51-
<image>https://raw.githubusercontent.com/PhilippKosarev/bmi/0a37115b4cff898ec0a6c54ae5f50ae544816942/screenshot.png</image>
51+
<image>https://raw.githubusercontent.com/PhilippKosarev/bmi/7a098ecc8cf6474713b2a8c1b2114470d655e78b/screenshot.png</image>
5252
<caption>BMI Dark Theme</caption>
5353
</screenshot>
5454
<screenshot>
55-
<image>https://raw.githubusercontent.com/PhilippKosarev/bmi/f598ae6986848a910b1497c1d0c7ff5272f11c76/screenshot2.png</image>
55+
<image>https://raw.githubusercontent.com/PhilippKosarev/bmi/7a098ecc8cf6474713b2a8c1b2114470d655e78b/screenshot2.png</image>
5656
<caption>BMI Light Theme</caption>
5757
</screenshot>
5858
</screenshots>
@@ -69,15 +69,15 @@
6969
</supports>
7070

7171
<releases>
72-
<release version="v1.3" date="2024-10-6">
73-
<url type="details">https://github.com/PhilippKosarev/bmi/releases/tag/v1.3</url>
72+
<release version="v1.4" date="2024-10-6">
73+
<url type="details">https://github.com/PhilippKosarev/bmi/releases/tag/v1.4</url>
7474
<description translate="no">
75-
<p>Version 1.3</p>
75+
<p>Version 1.4</p>
7676
<ul>
77-
<li>Fixed inconsistent BMI message (underweight/healthy/overweight)</li>
78-
<li>Updated app icon to fit the guidelines</li>
79-
<li>Updated brand colour to fit the guidelines</li>
80-
<li>Added hardware support info</li>
77+
<li>Added option to remember height and weight</li>
78+
<li>"Copied results" toasts disappear quicker</li>
79+
<li>BMI button now stays the same size regardless of the number inside</li>
80+
<li>Made the window is smaller</li>
8181
</ul>
8282
</description>
8383
</release>

io.github.philippkosarev.bmi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{
3232
"type" : "git",
3333
"url" : "https://github.com/PhilippKosarev/bmi",
34-
"tag" : "v1.3"
34+
"tag" : "v1.4"
3535
}
3636
]
3737
}

src/window.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(self, **kwargs):
5757
self.forget_button = Gtk.ToggleButton()
5858
self.forget_button.set_icon_name("user-trash-full-symbolic")
5959
self.forget_button.set_tooltip_text("Forget values on close")
60+
self.forget_button.set_active(self.settings["forget"])
6061
self.header.pack_start(self.forget_button)
6162

6263
# Main box
@@ -174,7 +175,7 @@ def show_about(self, _button):
174175
self.about = Adw.AboutWindow(application_name='BMI',
175176
application_icon='io.github.philippkosarev.bmi',
176177
developer_name='Philipp Kosarev',
177-
version='v1.3',
178+
version='v1.4',
178179
developers=['Philipp Kosarev'],
179180
artists=['Philipp Kosarev'],
180181
copyright='© 2024 Philipp Kosarev',
@@ -185,10 +186,10 @@ def show_about(self, _button):
185186

186187
# Action after closing the app window
187188
def on_close_window(self, widget, *args):
188-
self.settings["forget"] = self.forget_button.get_active()
189189
if self.forget_button.get_active() == True:
190190
self.settings["height"] = 175
191191
self.settings["weight"] = 65
192192
else:
193193
self.settings["height"] = self.height_adjustment.get_value()
194194
self.settings["weight"] = self.weight_adjustment.get_value()
195+
self.settings["forget"] = self.forget_button.get_active()

0 commit comments

Comments
 (0)