diff --git a/meson.build b/meson.build index e9e4548..8038ae7 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('speedtest', - version: '0.1.0', + version: '1.0.0', meson_version: '>= 0.62.0', default_options: [ 'warning_level=2', 'werror=false', ], ) diff --git a/src/main.py b/src/main.py index 76f8b66..d00ec38 100644 --- a/src/main.py +++ b/src/main.py @@ -15,11 +15,12 @@ from .speedtest_worker import SpeedtestWorker class SpeedtestApplication(Adw.Application): - def __init__(self): + def __init__(self, version): super().__init__(application_id="xyz.ketok.Speedtest", flags=Gio.ApplicationFlags.DEFAULT_FLAGS) self.servers = None self.win = None + self.version = version self.create_action("quit", lambda *_: self.quit(), ["q", "w"]) self.create_action("about", self.on_about_action) @@ -60,7 +61,7 @@ def on_about_action(self, widget, _): application_name="Speedtest", application_icon="xyz.ketok.Speedtest", developer_name="Ketok", - version="0.1.0", + version=self.version, issue_url="https://github.com/Ketok4321/speedtest/issues", developers=["Ketok"], copyright="© 2023 Ketok", @@ -100,5 +101,5 @@ def create_action(self, name, callback, shortcuts=None): return action def main(version): - app = SpeedtestApplication() + app = SpeedtestApplication(version) return app.run(sys.argv)