Remove legacy file dialog.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Cryville.Common.Unity;
|
||||
using Cryville.Common.Unity.UI;
|
||||
using Cryville.Crtr.Browsing.Actions;
|
||||
using Cryville.Crtr.UI;
|
||||
@@ -29,12 +28,8 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
readonly HashSet<int> _selectedItems = new HashSet<int>();
|
||||
readonly Dictionary<int, BrowserItem> _items = new Dictionary<int, BrowserItem>();
|
||||
|
||||
[Obsolete]
|
||||
FileDialog _dialog;
|
||||
|
||||
protected virtual void Start() {
|
||||
m_itemContainer.LoadItem = LoadItem;
|
||||
InitDialog();
|
||||
}
|
||||
void OnDestroy() {
|
||||
UnregisterManager();
|
||||
@@ -114,21 +109,5 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
public void OnPathClicked(int index) {
|
||||
_manager.ReturnToDirectory(index);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public void OnAddButtonClicked() {
|
||||
_dialog.Show();
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
private void OnAddDialogClosed() {
|
||||
if (_dialog.FileName == null) return;
|
||||
if (ResourceManager.ImportItemFrom(new Uri(_dialog.FileName))) {
|
||||
Popup.Create("Import succeeded");
|
||||
}
|
||||
else {
|
||||
Popup.Create("Import failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user