Skip to content

Commit ca035dc

Browse files
Updates
1 parent 43b5bcc commit ca035dc

File tree

7 files changed

+23
-26
lines changed

7 files changed

+23
-26
lines changed

com.ml4w.dotfilesinstaller.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{
5757
"type" : "git",
5858
"url" : "https://github.com/mylinuxforwork/dotfiles-installer",
59-
"tag": "0.9.7"
59+
"tag": "0.9.8"
6060
}
6161
]
6262
}

data/com.ml4w.dotfilesinstaller.metainfo.xml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
</screenshots>
5959

6060
<releases>
61-
<release version="0.9.7" date="2025-08-25">
61+
<release version="0.9.8" date="2025-08-27">
6262
<url type="details">https://mylinuxforwork.github.io/dotfiles-installer/changelog</url>
6363
<description translate="no">
64-
<p>Release 0.9.7</p>
64+
<p>Release 0.9.8</p>
6565
<ul>
6666
<li>Add "Info" menu button to load configuration overview to installed dotfiles with "Open Homepage" and "Check for Updates" if remote source.</li>
6767
</ul>

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
{ text: "Home", link: "/" },
2424
{ text: "About", link: "/getting-started/overview" },
2525
{
26-
text: "0.9.6",
26+
text: "0.9.7",
2727
items: [
2828
{
2929
// todo; add CHANGELOG.md in dotfiles-installer repo

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('dotfiles-installer',
2-
version: '0.9.7',
2+
version: '0.9.8',
33
meson_version: '>= 1.0.0',
44
default_options: [ 'warning_level=2', 'werror=false', ],
55
)

src/_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
app_id = "com.ml4w.dotfilesinstaller"
2323
app_name = "Dotfiles Installer"
2424
app_developer = "Stephan Raabe"
25-
app_version = "0.9.7"
25+
app_version = "0.9.8"
2626
app_homepage = "https://github.com/mylinuxforwork/dotfiles-installer"
2727
app_github_api_tags = "https://api.github.com/repos/mylinuxforwork/dotfiles-installer/tags"
2828

src/ui/window.ui

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,6 @@
8787
<object class="GtkBox">
8888
<property name="orientation">1</property>
8989

90-
<!-- Messages -->
91-
<child>
92-
<object class="AdwBanner" id="update_banner">
93-
<property name="button-label" translatable="true">Update now</property>
94-
<property name="title">An update for the Dotfiles Installer is available!</property>
95-
<property name="revealed">false</property>
96-
<property name="action-name">win.update_app</property>
97-
</object>
98-
</child>
99-
10090
<!-- Stack -->
10191
<child>
10292
<object class="GtkStack" id="wizzard_stack">

src/window.py

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class DotfilesInstallerWindow(Adw.ApplicationWindow):
5252
spinner = Gtk.Template.Child()
5353
btn_add_project = Gtk.Template.Child()
5454
toast_overlay = Gtk.Template.Child()
55-
update_banner = Gtk.Template.Child()
5655
progress_bar = Gtk.Template.Child()
5756
install_mode = "install"
5857

@@ -77,7 +76,7 @@ def __init__(self, **kwargs):
7776
self.settings = Gio.Settings(schema_id=app_id)
7877

7978
self.create_actions()
80-
self.check_for_update()
79+
self.check_for_update(True)
8180
self.progress_bar.set_visible(False)
8281

8382
if get_dev_enabled():
@@ -436,32 +435,40 @@ def on_start_migration(self, widget, param):
436435

437436
# Check for Updates menu action
438437
def on_check_updates_action(self, widget, _):
439-
self.check_for_update()
438+
self.check_for_update(False)
440439

441440
# Start Update Thread
442-
def check_for_update(self):
441+
def check_for_update(self,init):
443442
printLog("Checking for updates...")
444-
thread = threading.Thread(target=self.check_latest_version)
443+
thread = threading.Thread(target=self.check_latest_version, args=(init,))
445444
thread.daemon = True
446445
thread.start()
447446

448447
# Check Latest Tag
449-
def check_latest_version(self):
448+
def check_latest_version(self,args):
450449
try:
451450
response = urlopen(app_github_api_tags)
452451
tags = json.load(response)
453452
if not tags[0]["name"] == app_version:
454453
printLog("Update is available")
455-
self.update_banner.set_revealed(True)
454+
toast = Adw.Toast.new("A new version of the Dotfiles Installer is available.")
455+
toast.set_button_label("Update Now")
456+
toast.connect("button-clicked",self.on_update_app)
457+
toast.set_timeout(5)
458+
self.toast_overlay.add_toast(toast)
456459
else:
457-
printLog("No update available")
460+
if not args:
461+
printLog("No Update available")
462+
toast = Adw.Toast.new("You're using already the latest version of the Dotfiles Installer.")
463+
toast.set_timeout(5)
464+
self.toast_overlay.add_toast(toast)
465+
458466
except:
459467
printLog("Check for updates failed","e")
460468

461469
# Open the homepage with update information
462-
def on_update_app(self, widget, _):
470+
def on_update_app(self, widget):
463471
Gtk.UriLauncher(uri="https://mylinuxforwork.github.io/dotfiles-installer/getting-started/update").launch()
464-
self.update_banner.set_revealed(False)
465472

466473
# --------------------------------------------
467474
# About Dialog

0 commit comments

Comments
 (0)