summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--installer-downloader/src/cacao_impl/ui.rs6
-rw-r--r--installer-downloader/src/resource.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/installer-downloader/src/cacao_impl/ui.rs b/installer-downloader/src/cacao_impl/ui.rs
index 5294eabd0c..b8f86e425f 100644
--- a/installer-downloader/src/cacao_impl/ui.rs
+++ b/installer-downloader/src/cacao_impl/ui.rs
@@ -178,7 +178,7 @@ macro_rules! button_wrapper {
impl Default for $name {
fn default() -> Self {
Self {
- button: Button::new($text),
+ button: Button::new(&$text),
}
}
}
@@ -197,7 +197,7 @@ macro_rules! button_wrapper {
}
impl $name {
- /// Register a callback to be execued on the main thread when this button is pressed.
+ /// Register a callback to be executed on the main thread when this button is pressed.
pub fn set_callback(&mut self, callback: impl Fn() + Send + 'static) {
// Wrap it in an Arc<Mutex> to make it Sync.
// We need this because Dispatcher demands sync, but the AppDelegate trait does not
@@ -215,7 +215,7 @@ macro_rules! button_wrapper {
}
button_wrapper!(LinkToBeta, BETA_LINK_TEXT);
-button_wrapper!(LinkToStable, STABLE_LINK_TEXT);
+button_wrapper!(LinkToStable, format!("← {STABLE_LINK_TEXT}"));
button_wrapper!(DownloadButton, DOWNLOAD_BUTTON_TEXT);
button_wrapper!(CancelButton, CANCEL_BUTTON_TEXT);
diff --git a/installer-downloader/src/resource.rs b/installer-downloader/src/resource.rs
index 1e3206ccbe..07bfe4161e 100644
--- a/installer-downloader/src/resource.rs
+++ b/installer-downloader/src/resource.rs
@@ -17,7 +17,7 @@ pub const BETA_PREFACE_DESC: &str = "Want to try the new Beta version? ";
pub const BETA_LINK_TEXT: &str = "Click here!";
/// Stable link text
-pub const STABLE_LINK_TEXT: &str = "← Back to stable version";
+pub const STABLE_LINK_TEXT: &str = "Back to stable version";
/// Dimensions of cancel button (including padding)
pub const CANCEL_BUTTON_SIZE: (usize, usize) = (150, 40);