mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
remove extra const
This commit is contained in:
parent
c80a31af9c
commit
3ccb20f2f4
1 changed files with 1 additions and 2 deletions
|
|
@ -12,7 +12,6 @@ use gtk::{
|
||||||
use sqlite::Transaction;
|
use sqlite::Transaction;
|
||||||
use std::{cell::Cell, rc::Rc};
|
use std::{cell::Cell, rc::Rc};
|
||||||
|
|
||||||
const PLACEHOLDER_TEXT: &str = "URL or search term...";
|
|
||||||
const PREFIX_DOWNLOAD: &str = "download:";
|
const PREFIX_DOWNLOAD: &str = "download:";
|
||||||
const PREFIX_SOURCE: &str = "source:";
|
const PREFIX_SOURCE: &str = "source:";
|
||||||
|
|
||||||
|
|
@ -62,7 +61,7 @@ impl Request for Entry {
|
||||||
fn request(item_action: &Rc<ItemAction>, profile: &Rc<Profile>) -> Self {
|
fn request(item_action: &Rc<ItemAction>, profile: &Rc<Profile>) -> Self {
|
||||||
// Init main widget
|
// Init main widget
|
||||||
let entry = Entry::builder()
|
let entry = Entry::builder()
|
||||||
.placeholder_text(PLACEHOLDER_TEXT)
|
.placeholder_text("URL or search term...")
|
||||||
.secondary_icon_tooltip_text("Go to the location")
|
.secondary_icon_tooltip_text("Go to the location")
|
||||||
.hexpand(true)
|
.hexpand(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue