Skip to content

Commit b92bbaf

Browse files
committed
Use existing saved-state settings object
1 parent 1938dd5 commit b92bbaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Widgets/Terminal.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ public class Code.Terminal : Gtk.Box {
130130
Posix.kill (child_pid, Posix.Signal.TERM);
131131
terminal.reset (true, true);
132132
spawn_shell (dir);
133-
var settings = new Settings (Constants.PROJECT_NAME + ".saved-state");
134-
settings.set_string ("last-opened-path", dir);
133+
Scratch.saved_state.set_string ("last-opened-path", dir);
135134
}
136135

137136
private string get_shell_location () {

0 commit comments

Comments
 (0)