Added message to support dialog

This commit is contained in:
jeffser 2024-08-02 21:44:19 -06:00
parent 42af75d8d2
commit ca10369bdc
2 changed files with 3 additions and 1 deletions

View File

@ -399,6 +399,8 @@ def support_response(self, dialog, task):
elif res == 'support': elif res == 'support':
self.show_toast(_("Thank you!"), self.main_overlay) self.show_toast(_("Thank you!"), self.main_overlay)
os.system('xdg-open https://github.com/sponsors/Jeffser') os.system('xdg-open https://github.com/sponsors/Jeffser')
elif res == 'nope':
self.show_toast(_("Visit Alpaca's website if you change your mind!"), self.main_overlay)
self.show_support = False self.show_support = False
self.save_server_config() self.save_server_config()

View File

@ -1604,7 +1604,7 @@ Generate a title following these rules:
#Support dialog #Support dialog
if 'show_support' not in data or data['show_support']: if 'show_support' not in data or data['show_support']:
if random.randint(0, 49) == 0: if random.randint(0, 49) == 0 or True:
dialogs.support(self) dialogs.support(self)
if 'show_support' in data: self.show_support = data['show_support'] if 'show_support' in data: self.show_support = data['show_support']
self.background_switch.set_active(self.run_on_background) self.background_switch.set_active(self.run_on_background)