File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ pub trait Plugin {
63
63
#[ derive( Default ) ]
64
64
pub struct PluginManager {
65
65
plugins : Vec < Box < dyn Plugin > > ,
66
- config_padding : f32 ,
67
66
config_plugins : Vec < String > ,
68
67
}
69
68
@@ -73,7 +72,6 @@ impl PluginManager {
73
72
}
74
73
75
74
pub fn configure ( & mut self , mut builder : ConfigBuilder ) -> Result < ConfigBuilder , ConfigError > {
76
- self . config_padding = builder. get_or_create ( "padding" , 15. ) ?;
77
75
let plugins = builder. get_or_create (
78
76
"plugins" ,
79
77
vec ! [
@@ -114,7 +112,7 @@ impl PluginManager {
114
112
115
113
pub fn search ( & mut self , query : & mut String , ui : & mut Ui , gl_window : & GlutinWindowContext ) {
116
114
ui. horizontal_top ( |ui| {
117
- ui. add_space ( self . config_padding ) ;
115
+ ui. add_space ( 15. ) ;
118
116
ui. vertical ( |ui| {
119
117
// don't search when there's nothing to search
120
118
if query. is_empty ( ) {
@@ -127,6 +125,8 @@ impl PluginManager {
127
125
return ;
128
126
}
129
127
}
128
+
129
+ ui. add_space ( 10. ) ;
130
130
} ) ;
131
131
} ) ;
132
132
}
You can’t perform that action at this time.
0 commit comments