mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not rewrite ipython file if content is identical
This commit is contained in:
@@ -103,9 +103,11 @@ public class IpnbFilePanel extends JPanel implements Scrollable, DataProvider, D
|
||||
|
||||
private void readFromFile(boolean showError) {
|
||||
try {
|
||||
IpnbFile file = IpnbParser.parseIpnbFile(myDocument, myVirtualFile);
|
||||
if (file.equals(myIpnbFile)) return;
|
||||
myIpnbFile = file;
|
||||
myIpnbPanels.clear();
|
||||
mySelectedCell = null;
|
||||
myIpnbFile = IpnbParser.parseIpnbFile(myDocument, myVirtualFile);
|
||||
if (myIpnbFile.getCells().isEmpty()) {
|
||||
CommandProcessor.getInstance().runUndoTransparentAction(new Runnable() {
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user