Fixed welcome dialog

This commit is contained in:
jeffser 2024-07-08 11:41:20 -06:00
parent 8158026d96
commit 5420bcb92d
2 changed files with 7 additions and 3 deletions

View File

@ -253,8 +253,12 @@ class AlpacaWindow(Adw.ApplicationWindow):
def welcome_carousel_page_changed(self, carousel, index): def welcome_carousel_page_changed(self, carousel, index):
if index == 0: self.welcome_previous_button.set_sensitive(False) if index == 0: self.welcome_previous_button.set_sensitive(False)
else: self.welcome_previous_button.set_sensitive(True) else: self.welcome_previous_button.set_sensitive(True)
if index == carousel.get_n_pages()-1: self.welcome_next_button.set_label(_("Close")) if index == carousel.get_n_pages()-1:
else: self.welcome_next_button.set_label(_("Next")) self.welcome_next_button.set_label(_("Close"))
self.welcome_next_button.set_tooltip_text(_("Close"))
else:
self.welcome_next_button.set_label(_("Next"))
self.welcome_next_button.set_tooltip_text(_("Next"))
@Gtk.Template.Callback() @Gtk.Template.Callback()
def welcome_previous_button_activate(self, button): def welcome_previous_button_activate(self, button):

View File

@ -930,7 +930,7 @@ By downloading any model you accept their license agreement available on the mod
<property name="vexpand">false</property> <property name="vexpand">false</property>
<property name="icon-name">folder-download-symbolic</property> <property name="icon-name">folder-download-symbolic</property>
<property name="valign">3</property> <property name="valign">3</property>
<property name="tooltip-text">Pull 'Gemma 2 (latest)'</property> <property name="tooltip-text">Pull 'Gemma2 (latest)'</property>
<style> <style>
<class name="accent"/> <class name="accent"/>
</style> </style>