Navigation Menu

Skip to content

Commit

Permalink
Missing file separators for last choosen directory on Windows #53
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Gülle (Windows) committed Dec 31, 2016
1 parent 4e4e08d commit 3d2da02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Expand Up @@ -134,7 +134,7 @@ public Object setProperty(String key, String value) {
}
}

Object obj = super.setProperty(key, value);
Object obj = super.setProperty(key, value.replace("\\", "/"));
return obj;
}

Expand Down
Expand Up @@ -100,7 +100,6 @@ public class GUIAutomationConfigurationTable extends CacheableJTable {
private DefaultTableModel tableModel = new ConfigurationTableModel();
private Vector<Vector<Object>> data = new Vector<Vector<Object>>();
private Vector<String> columnNames = new Vector<String>();
private String screenShotFileChooserDir;

@Autowired
@Qualifier("midiLearnPopupMenu")
Expand Down Expand Up @@ -170,9 +169,6 @@ public void init() {
createScanRateColumn();
createMovableColumn();

screenShotFileChooserDir = presenterService
.getLastScreenshotChooserDirectory();

// popup Menu
addMouseListener(new PopupListener());
midiLearnPopupMenu.init();
Expand Down
Expand Up @@ -67,6 +67,9 @@ public void init() {
removeImageAction = new RemoveImageAction(mainFrame);
removeImageMenuItem.addActionListener(removeImageAction);

screenShotFileChooserDir = presenterService
.getLastScreenshotChooserDirectory();

add(newImageMenuItem);
add(removeImageMenuItem);

Expand Down
Expand Up @@ -30,6 +30,7 @@
import com.midi_automator.presenter.services.GUIAutomationsService;
import com.midi_automator.presenter.services.MidiItemChangeNotificationService;
import com.midi_automator.presenter.services.MidiService;
import com.midi_automator.presenter.services.PresenterService;
import com.midi_automator.utils.GUIUtils;
import com.midi_automator.utils.MidiUtils;
import com.midi_automator.view.HTMLLabel;
Expand Down Expand Up @@ -98,6 +99,8 @@ public class PreferencesDialog extends AbstractBasicDialog {

@Autowired
private Presenter presenter;
@Autowired
protected PresenterService presenterService;

@Autowired
private GUIAutomationsService guiAutomationsService;
Expand Down

0 comments on commit 3d2da02

Please sign in to comment.