Skip to content

Commit e8f760e

Browse files
committed
Update UI to show file name
1 parent 176967a commit e8f760e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

in.aryank.openforms.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id" : "in.aryank.openforms",
33
"runtime" : "org.gnome.Platform",
4-
"runtime-version" : "49",
4+
"runtime-version" : "48",
55
"sdk" : "org.gnome.Sdk",
66
"command" : "open_forms",
77
"finish-args" : [
@@ -30,7 +30,8 @@
3030
"sources" : [
3131
{
3232
"type" : "git",
33-
"url" : "https://github.com/Aryan20/open_forms.git"
33+
"url" : "https://github.com/Aryan20/open_forms.git",
34+
"branch" : "176967a5aa2a07a81fb93ce07d683c12faa2eb90"
3435
}
3536
],
3637
"config-opts" : [

src/form_config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def _open_file(self, title, suffix, callback):
5656
file_filter.add_suffix(suffix)
5757

5858
filter_store.append(file_filter)
59-
60-
6159
dialog.set_filters(filter_store)
6260
dialog.open(None, None, callback)
6361

@@ -75,7 +73,7 @@ def _on_json_selected(self, dialog, result):
7573

7674
self.page.config_file = file
7775
self.page.form_config = self._load_config(file)
78-
76+
self.open_form_config_btn.set_label(file.get_basename())
7977
self._try_form_open()
8078
except GLib.Error:
8179
pass # cancelled
@@ -90,7 +88,7 @@ def _open_csv(self, *_):
9088
def _on_csv_selected(self, dialog, result):
9189
try:
9290
file = dialog.open_finish(result)
93-
91+
self.open_csv_btn.set_label(file.get_basename())
9492
self.page.csv_file = file
9593
self._try_form_open()
9694
except GLib.Error:

0 commit comments

Comments
 (0)