mirror of https://codeberg.org/topola/topola.git
chore(egui): filter dsn files on DSN file dialog
This commit is contained in:
parent
51389c8e2a
commit
7bef759209
|
|
@ -148,7 +148,9 @@ impl MenuBar {
|
||||||
if actions.file.open_design.consume_key_triggered(ctx, ui) {
|
if actions.file.open_design.consume_key_triggered(ctx, ui) {
|
||||||
// NOTE: On Linux, this requires Zenity to be installed on your system.
|
// NOTE: On Linux, this requires Zenity to be installed on your system.
|
||||||
let ctx = ctx.clone();
|
let ctx = ctx.clone();
|
||||||
let task = rfd::AsyncFileDialog::new().pick_file();
|
let task = rfd::AsyncFileDialog::new()
|
||||||
|
.add_filter(tr.text("tr-menu-open-specctra-design-file"), &["dsn"])
|
||||||
|
.pick_file();
|
||||||
|
|
||||||
execute(async move {
|
execute(async move {
|
||||||
if let Some(file_handle) = task.await {
|
if let Some(file_handle) = task.await {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
tr-menu-file = File
|
tr-menu-file = File
|
||||||
tr-menu-file-open = Open
|
tr-menu-file-open = Open
|
||||||
tr-menu-open-specctra-session-file = Specctra session file
|
tr-menu-open-specctra-design-file = Specctra design file (*.dsn)
|
||||||
|
tr-menu-open-specctra-session-file = Specctra session file (*.ses)
|
||||||
tr-menu-file-export-session-file = Export Session File
|
tr-menu-file-export-session-file = Export Session File
|
||||||
tr-menu-file-import-history = Import History
|
tr-menu-file-import-history = Import History
|
||||||
tr-menu-file-export-history = Export History
|
tr-menu-file-export-history = Export History
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue