Skip to content

Commit

Permalink
default setting for hidden files: hide them.
Browse files Browse the repository at this point in the history
  • Loading branch information
prof7bit committed May 22, 2014
1 parent b82b94a commit 1c37a28
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class WalletPanel extends JPanel{
]

val file_open = new JFileChooser => [
fileHidingEnabled = true
addChoosableFileFilter(new FileNameExtensionFilter("Blockchain.info backup (*.aes.json)", "json"))
addChoosableFileFilter(new FileNameExtensionFilter("Multibit key export file (*.key)", "key"))
addChoosableFileFilter(new FileNameExtensionFilter("Bitcoin-core 'dumpwallet' file (*.txt)", "txt"))
Expand All @@ -183,6 +184,7 @@ class WalletPanel extends JPanel{
]

val file_save = new JFileChooser => [
fileHidingEnabled = true
setAcceptAllFileFilterUsed(false)
addChoosableFileFilter(new FileNameExtensionFilter("Multibit key export file (*.key)", "key"))
addChoosableFileFilter(new FileNameExtensionFilter("Bitcoin-core 'dumpwallet' file (*.txt)", "txt"))
Expand All @@ -208,7 +210,7 @@ class WalletPanel extends JPanel{
panel.layout = new MigLayout("fillx")
new JCheckBox("show hidden files") => [
panel.add(it, "pushx, growx, wrap")
selected = false
selected = !c.fileHidingEnabled
addActionListener [evt|
c.fileHidingEnabled = !selected
]
Expand Down

0 comments on commit 1c37a28

Please sign in to comment.