mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-01 15:53:26 -10:00
Skip showing auto-save document old version error
This commit is contained in:
1 parent
089df947ac
commit
d4e8a5545d
1 file changed
+10
-6
@@ -359,13 +359,17 @@ impl MessageHandler<PortfolioMessage, (&InputPreprocessorMessageHandler, &Prefer
|
||||
document.set_save_state(document_is_saved);
|
||||
self.load_document(document, document_id, responses);
|
||||
}
|
||||
Err(e) => responses.push_back(
|
||||
DialogMessage::DisplayDialogError {
|
||||
title: "Failed to open document".to_string(),
|
||||
description: e.to_string(),
|
||||
Err(e) => {
|
||||
if !document_is_auto_saved {
|
||||
responses.push_back(
|
||||
DialogMessage::DisplayDialogError {
|
||||
title: "Failed to open document".to_string(),
|
||||
description: e.to_string(),
|
||||
}
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
.into(),
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: Paste message is unused, delete it?
|
||||
|
||||
Reference in new issue
Block a user