File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,15 @@ impl Plugin for Launcher {
114
114
self . run ( & app. exec , & args) ;
115
115
query. clear ( ) ;
116
116
gl_window. window ( ) . set_visible ( false ) ;
117
+ self . list = Default :: default ( ) ;
117
118
}
118
119
119
120
for action in & app. actions {
120
121
if ui. secondary_action ( & action. name ) . activated {
121
122
self . run ( & action. command , & args) ;
122
123
query. clear ( ) ;
123
124
gl_window. window ( ) . set_visible ( false ) ;
125
+ self . list = Default :: default ( ) ;
124
126
}
125
127
}
126
128
} )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use super::{Plugin, PluginFlowControl};
14
14
15
15
#[ derive( Default ) ]
16
16
pub struct Pass {
17
- list_state : ListState ,
17
+ list : ListState ,
18
18
config_command_list_passwords : String ,
19
19
config_command_copy_password : String ,
20
20
config_command_type_password : String ,
@@ -84,6 +84,7 @@ impl Pass {
84
84
ui. label ( & e. to_string ( ) )
85
85
} else {
86
86
* query = "" . into ( ) ;
87
+ self . list = Default :: default ( ) ;
87
88
}
88
89
}
89
90
}
@@ -102,6 +103,7 @@ impl Pass {
102
103
ui. label ( & e. to_string ( ) )
103
104
} else {
104
105
* query = "" . into ( ) ;
106
+ self . list = Default :: default ( ) ;
105
107
}
106
108
}
107
109
}
@@ -133,8 +135,8 @@ impl Plugin for Pass {
133
135
match self . list_passwords ( ) {
134
136
Ok ( passwords) => {
135
137
const NUMBER_OF_BUTTONS : usize = 2 ;
136
- self . list_state . update ( ui. ctx ( ) , passwords. len ( ) , |_| NUMBER_OF_BUTTONS ) ;
137
- ui. list ( self . list_state , |mut ui| {
138
+ self . list . update ( ui. ctx ( ) , passwords. len ( ) , |_| NUMBER_OF_BUTTONS ) ;
139
+ ui. list ( self . list , |mut ui| {
138
140
for pw in passwords {
139
141
ui. row ( |mut ui| {
140
142
ui. label ( & pw) ;
You can’t perform that action at this time.
0 commit comments