chore: Tweak logout toast strings

This commit is contained in:
David Lapshin 2023-09-05 18:01:42 +03:00
parent 0493f2646f
commit 905dc8235b
Signed by untrusted user: daudix
GPG key ID: 93ECF15D3053D81C
2 changed files with 6 additions and 6 deletions

View file

@ -615,11 +615,11 @@ class GradienceApplication(Adw.Application):
self.plugins_list.apply()
self.win.toast_overlay.add_toast(
Adw.Toast(title=_("Preset set successfully. You may need to restart some apps and log out."))
Adw.Toast(title=_("Preset has been set. Log out to apply changes."))
)
toast = Adw.Toast()
toast.set_title(_("Preset set successfully. You may need to restart some apps and log out."))
toast.set_title(_("Preset has been set. Log out to apply changes."))
self.win.toast_overlay.add_toast(toast)
def show_preferences(self, *_args):

View file

@ -56,7 +56,7 @@ class GradienceResetPresetGroup(Adw.PreferencesGroup):
)
else:
toast = Adw.Toast(
title=_("GTK 4 preset has been restored. Please log out to apply changes."),
title=_("GTK 4 preset has been restored. Log out to apply changes."),
)
self.parent.add_toast(toast)
@ -70,7 +70,7 @@ class GradienceResetPresetGroup(Adw.PreferencesGroup):
)
else:
toast = Adw.Toast(
title=_("GTK 4 theme has been reset. Please log out to apply changes."),
title=_("GTK 4 theme has been reset. Log out to apply changes."),
)
self.parent.add_toast(toast)
@ -85,7 +85,7 @@ class GradienceResetPresetGroup(Adw.PreferencesGroup):
)
else:
toast = Adw.Toast(
title=_("GTK 3 preset has been restored. Please log out to apply changes."),
title=_("GTK 3 preset has been restored. Log out to apply changes."),
)
self.parent.add_toast(toast)
@ -99,6 +99,6 @@ class GradienceResetPresetGroup(Adw.PreferencesGroup):
)
else:
toast = Adw.Toast(
title=_("GTK 3 theme has been reset. Please log out to apply changes."),
title=_("GTK 3 theme has been reset. Log out to apply changes."),
)
self.parent.add_toast(toast)