Permalink
Browse files

fix History shortcuts in CVCenter

since SC 3.7 supports Document again we can create a new document
containing the current history when ending history recording

Signed-off-by:  <st9fan@gmail.com>
  • Loading branch information...
nuss committed Jan 11, 2014
1 parent 95cc74c commit fe1f03940ba64c47b5363f55a55fc01dddf33796
Showing with 6 additions and 1 deletion.
  1. +6 −1 CVCenter/CVCenter.sc
View
@@ -281,7 +281,12 @@ CVCenter {
if(modifiers == 131072 and:{ unicode == 72 and:{ History.started }}, {
// keys <shift> + "h" -> end History and open History in a new document
History.end;
- if(Platform.ideName != "scqt", { History.document });
+ if(Platform.ideName == "scapp" or:{
+ (Platform.ideName == "scqt").and(Main.versionAtLeast(3, 7))
+ }) { History.document };
+ if(CVCenter.scv.historyWin.notNil and:{
+ CVCenter.scv.historyWin.isClosed.not
+ }) { CVCenter.scv.historyWin.close }
})
})
});

0 comments on commit fe1f039

Please sign in to comment.