mirror of
https://github.com/zoriya/flood.git
synced 2026-05-30 02:06:34 +00:00
Save settings more reasonably
This commit is contained in:
@@ -25,10 +25,6 @@ class UIStoreClass extends BaseStore {
|
||||
}
|
||||
}
|
||||
|
||||
fetchLatestTorrentLocation() {
|
||||
TorrentActions.fetchLatestTorrentLocation();
|
||||
}
|
||||
|
||||
getActiveContextMenu() {
|
||||
return this.activeContextMenu;
|
||||
}
|
||||
@@ -45,15 +41,6 @@ class UIStoreClass extends BaseStore {
|
||||
return this.torrentDetailsHash;
|
||||
}
|
||||
|
||||
handleLatestTorrentLocationRequestSuccess(location) {
|
||||
this.latestTorrentLocation = location;
|
||||
this.emit(EventTypes.UI_LATEST_TORRENT_LOCATION_CHANGE);
|
||||
}
|
||||
|
||||
handleLatestTorrentLocationRequestError(error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
handleTorrentClick(hash) {
|
||||
this.torrentDetailsHash = hash;
|
||||
this.emit(EventTypes.UI_TORRENT_DETAILS_HASH_CHANGE);
|
||||
@@ -133,12 +120,6 @@ UIStore.dispatcherID = AppDispatcher.register((payload) => {
|
||||
case ActionTypes.UI_DISPLAY_CONTEXT_MENU:
|
||||
UIStore.setActiveContextMenu(action.data);
|
||||
break;
|
||||
case ActionTypes.UI_LATEST_TORRENT_LOCATION_REQUEST_SUCCESS:
|
||||
UIStore.handleLatestTorrentLocationRequestSuccess(action.data.path);
|
||||
break;
|
||||
case ActionTypes.UI_LATEST_TORRENT_LOCATION_REQUEST_ERROR:
|
||||
UIStore.handleLatestTorrentLocationRequestError(action.error);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user