mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 12:38:12 +08:00
Dialog redesign and content revamp (#1409)
* Revamp the content and design of dialogs * Add the Licenses dialog
This commit is contained in:
@@ -140,8 +140,7 @@ impl MessageHandler<PortfolioMessage, (&InputPreprocessorMessageHandler, &Prefer
|
||||
document_name: target_document.name.clone(),
|
||||
document_id,
|
||||
};
|
||||
dialog.send_layout(responses, LayoutTarget::DialogDetails);
|
||||
responses.add(FrontendMessage::DisplayDialog { icon: "File".to_string() });
|
||||
dialog.send_dialog_to_frontend(responses);
|
||||
|
||||
// Select the document being closed
|
||||
responses.add(PortfolioMessage::SelectDocument { document_id });
|
||||
@@ -598,6 +597,10 @@ impl PortfolioMessageHandler {
|
||||
self.active_document_id
|
||||
}
|
||||
|
||||
pub fn unsaved_document_names(&self) -> Vec<String> {
|
||||
self.documents.values().filter(|document| !document.is_saved()).map(|document| document.name.clone()).collect()
|
||||
}
|
||||
|
||||
pub fn generate_new_document_name(&self) -> String {
|
||||
let mut doc_title_numbers = self
|
||||
.ordered_document_iterator()
|
||||
|
||||
Reference in New Issue
Block a user